Before you ask please READ THIS

Search results page problems

edited October 2012 in Skyfashion Posts: 29
1) How do I get the right blog rail to show up on the search results page?

2) More crucial, even though the results say 45, only 1 page of results is showing/accessible:
http://smallshopstudio.com/?s=books

Please help!

Comments

  • Per #2, meaning, page #s and "older posts" not showing at bottom.
  • Hi,
    1) Template is not prepared to that. You need to edit search.php.

    2) It seems that is bug. I will let you know as soon as I will fix it. Thanks for information!

    Best,
    Miłosz
  • Thanks Milosz and please let me know how to edit search.php to include the right rail. Thank you!
  • Hi,
    this code will add right sidebar:
    <?php if (is_active_sidebar('blog-widget-area')) : ?>

    <?php endif; ?>

    You have to add it left to the posts list.

    Best,
    Miłosz
  • Hi Milosz, how do I fix the bug where the page numbers don't appear at the bottom of the search results page?
  • Hi again, I tried to enter the code but it's not working. Can you just put it in for me into this original code, and I'll copy and paste the whole thing? Perhaps I'm not putting it into the right place. Thank you!

    <?php
    /**
    * The template for displaying Search Results pages.
    *
    */
    get_header();
    ?>
    <?php get_sidebar(); ?>

    <?php if (have_posts()) : ?>
    <?php
    /* Search Count */
    $allsearch = &new WP_Query("s=$s&showposts=-1");
    $count = $allsearch->post_count;
    wp_reset_query();
    ?>

    <?php printf(__('Search results - %1$d results found for \'%2$s\'', TPL_SLUG), $count, get_search_query()); ?>




    <?php
    /* Run the loop for the search to output the results. */
    get_template_part('loop');
    ?>

    <?php else : ?>

    <?php _e('Search results - nothing found', TPL_SLUG); ?>

    <?php endif; ?>
    <?php $apollo13->blog_nav(); ?>
    <?php
    if (function_exists('wp_paginate')) {
    wp_paginate();
    }
    ?>




    <?php get_footer(); ?>
  • Hi,
    can I try do it on your server?

    Best,
    Miłosz
  • Hi - yes please! Definitely need the page #s on the search pages. Do you still have my login info? It hasn't changed. Thank you!
  • Hi,
    please send me an email - when I can make it.

    Best,
    Miłosz
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!