Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hello,
I’ve made a custom search for my website and I want the results to be paginated.
The code is:
$args = array(
's' => $keyword,
'orderby' => 'title',
'post_type' => 'any',
'order' => 'ASC',
'posts_per_page' => '10',
'paged' => $paged,
);
?>
Search Results for:
Looks like the code wasn’t displayed. I try again:
The results appear OK but the pagination links doesn’t show up.
What am I doing wrong?
Thank you,
George D.
Hi George
It may be that you are not passing the paging info in the post arguments. Please see the answer to this post.
http://wordpress.stackexchange.com/questions/120407/how-to-fix-pagination-for-custom-loops
Magus
Thank you Magus.
I’ve figured out.
Have a nice day,
George D.
Glad to hear you made progress on this.
All the best :)