I had a little problem on a project today, previous_posts_link() and next_posts_link() weren’t showing up.

The solution is simple if you are using WP_Query, just add the max_num_pages as the second parameter for next_posts_link(). Like this:

next_posts_link('>', $custom_query->max_num_pages);

Change custom_query to whatever variable name you’re using when you’re calling new WP_Query();

Our WordPress themes
We have a few WordPress themes that we would like you to take a look at if you want.
check out the portfolio