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











Handy Help. Thanks
Hi!
It still don´t working, could you take a look at the code, please?
‘portfolio’, ‘posts_per_page’ => 3 ) ); ?>
…
max_num_pages); ?>
max_num_pages); ?>
Could someone hep me? Have I did something wrong?
Thanks,
Diogo
Wrap the code like this [php] code [/php]