Query results – Page navigation
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:
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
5Looks 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 :)
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.