Forums Forums Search & Filter Pro Page navigation will not go to next page but go to top

Viewing 10 posts - 1 through 10 (of 21 total)
  • Trevor
    #265995

    I can see that our plugin is not applying our format to the pagination, but the pagination is in the correct place in the HTML and defined correctly in the form.

    That suggests to me that, in the PHP template for the page, the pagination is actually a call to an external function, rather than actually being run in the page template file. Are you able to show me that part of the PHP?

    Anonymous
    #266092
    This reply has been marked as private.
    Trevor
    #266096

    You would need to place code in that template to do the pagination without an external call like that. For example, if you had the free WP-PageNavi plugin, code like this would do it:

    <div class="pagination">
    	<?php
    		if (function_exists('wp_pagenavi')) {
    			echo "<br />";
    			wp_pagenavi( array( 'query' => $query ) );
    		}
    	?>
    </div>

    Assuming that the wp_query results array is named $query, which is what most themes use (but not all).

    Anonymous
    #266101
    This reply has been marked as private.
    Trevor
    #266105

    You may need to go find the numeric_posts_nav() function and see if you can copy the code and place it directly in place in the template. But, it may be calling its own query, so that may get a little messy. You could write your own code, if you wish to avoid adding a plugin.

    Anonymous
    #266123
    This reply has been marked as private.
    Trevor
    #266125

    Possibly the $query part, if your theme uses a different name for that variable.

    OR, did you make sure to end PHP before the HTML and start PHP after the HTML?

    Anonymous
    #266127
    This reply has been marked as private.
    Trevor
    #266133

    Do a recursive search through the theme files for wp_query( and see if you can find where the array is set.

    Anonymous
    #266137
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 21 total)