Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

search-form.php

<div class="search_main">
    <form method="get" class="searchform" action="<?php echo home_url( '/' ); ?>" >
        <input type="text" class="field s" name="s" value="<?php _e( 'Search…', 'woothemes' ); ?>" onfocus="if (this.value == '<?php _e( 'Search…', 'woothemes' ); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search…', 'woothemes' ); ?>';}" />
        <input type="image" src="<?php echo get_template_directory_uri(); ?>/images/ico-search.png" alt="<?php _e( 'Search', 'woothemes' ); ?>" class="submit" name="submit" />
    </form>    
    <div class="fix"></div>
</div>
share|improve this question
2  
We have many threads about search pagination. What have you tried already? What didn’t work? –  toscho Nov 14 '12 at 15:00
    
I'll read some more of the discussions in the link above. I'm sure someone has has the same issue. I have replaced the "form method" and updated my themes/plugins. –  Dan Nov 14 '12 at 18:51
add comment

1 Answer

To clarify, it is important to note that the HTML presented above is not necessarily directly related to the search query you're making.

I would advise disabling any plugins that potentially modify the search query. If that doesn't remedy the issue, there may be a query filter within your currently active theme or a plugin on your installation that is executing on the search results screens and interfering with the pagination of the query.

If your theme supports displaying the pagination as "next/previous links" instead of a numbered pagination bar, I'd advise turning that on, as that is the WordPress default pagination output.

If the pagination works correctly with that setting on, the issue is then with woo_pagination(), built into the WooFramework. Fortunately, this function has recently been updated and should be far more accurate. If that is the case, I'd recommend updating to the latest version of the WooFramework.

If the pagination doesn't work with the "next/previous links" output, we can confirm that the issue is a query filter that is interfering.

At that stage, I'd advise contacting WooThemes support directly, where the support ninjas can debug the issue with you directly. They may need to have a more detailed look at the code itself, which is best done one-to-one. :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.