Support » How-To and Troubleshooting » Pagination not working with custom WP_Query
4 years, 6 months ago
I have the following code, attempting to get pagination working, and it isn’t producing paginated links below my code. Thoughts? Thanks for the help.
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
4 years, 5 months ago
Ok – here is the code I am referring to – any help would be greatly appreciated. http://pastebin.com/P3Gjh77P
I am having the same issue.
4 years, 4 months ago
Anyone? Still having this issue. Thanks for any help/guidance you can give.
change $myquery to $wp_query
That seemingly has no effect. It just changed the variable name?
see what happens with this
That link goes to an ‘unknown’ pastebin
Try this one
Jay – that still did not produce previous/next links. Any thoughts?
try removing this 'paged' => $paged, under 'posts_per_page' => 10, but check out this article if you have not already.
'paged' => $paged,
'posts_per_page' => 10
Nope – still not doing it. 🙁 I have no idea why…