Forums Forums Search & Filter Pro Pagination Issue

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #228848

    Hi,
    After following your previous advice from this previous thread: https://support.searchandfilter.com/forums/topic/social-media-sharing-issue/ I was able to get the listings to display correctly using an actual page within WordPress.

    However, unfortunately the pagination at the bottom of the page isn’t displaying the same as the live site (which uses the ‘As an Archive’ method). I need to it to display individual clickable numbers for each results page (see link to live URL below this thread).

    I tried copying the code from the blog-structure.php file from the theme into the custom results.php file for searchfilterpro but it didn’t work. The code is shown below:

    <?php if($qode_options['blog_pagination_type'] == 'standard' && $qode_options['pagination'] != "0") {
    			qode_pagination($wp_query->max_num_pages, $blog_page_range, $paged);
                }
            	elseif ($qode_options['blog_pagination_type'] == 'prev_and_next'){ ?>
    				<div class="pagination_prev_and_next_only">
    					<ul>
    						<li class='prev'><?php echo wp_kses_post(get_previous_posts_link($icon_left_html)); ?></li>
    						<li class='next'><?php echo wp_kses_post(get_next_posts_link($icon_right_html)); ?></li>
    					</ul>
    				</div>
    		<?php } ?>
        <?php } ?>

    Any help much appreciated.

    Anonymous
    #228849
    This reply has been marked as private.
    Trevor
    #228861

    If you are using code from our results.php file, you may want to install the WP_PageNavi plugin and that should allow numbered navigation (you will see the code in the standard results.php file).

    Anonymous
    #228871

    ok was hoping not to have to install another plugin, but will try it out.

    Anonymous
    #247407

    Hi,
    Just revisiting this issue, I installed the WP-PageNavi plugin and it works great!.

    However, I still have the text ‘No post were found.’ showing underneath the pagination even when there ARE posts/results shown. I’m not sure where this is coming from I suspect the themes blog template, just not sure why it’s displaying. This is the code I have at the bottom of the results.php file:

    <div class="pagination">
    		
    		
    		<?php
    			/* example code for using the wp_pagenavi plugin */
    			if (function_exists('wp_pagenavi'))
    			{
    				echo "<br />";
    				wp_pagenavi( array( 'query' => $query ) );
    			}
    		?>
    	</div>
    	<?php
    }
    else
    {
    	echo "No Results Found";
    }
    ?>
    Anonymous
    #247409

    Nevermind, I had the page template set to Blog, after setting it to default the text doesn’t display.

    Trevor
    #247415

    Thanks for getting back to me. I will close this thread for now.

Viewing 7 posts - 1 through 7 (of 7 total)