Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Newest portfolio item’s “Next Project” link

Home / Forums / Ascend Theme / Newest portfolio item’s “Next Project” link

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
January 26, 2019 at 2:07 pm

Hi!

Currently, if you are viewing the newst portfolio item then “Next Project” link is not displayed displayed (because there’s no newer post).

Would it be possible to make the Next Project link in this case to point to the oldest post in the category (to loop)?

I have a child theme and I guess the file to edit is templates/entry-post-links.php. It should probably check if next_post_link() comes up empty and then get the oldest post in category. What would be the best way to do it?

Thank you in advance!

Veikko

  • The forum ‘Ascend Theme’ is closed to new topics and replies.