I’d like the “next project” arrow on my last portfolo page to return to the first portfolio page, and not continue to photography. Is this possible?
just checking in :)
Hi,
Thank you for the inquiry.
Unfortunately, this is not possible. If the post navigation is set to navigate only within the same category, it cannot loop back to the first item. You can choose to enable either looping or category-specific navigation, but not both.
Best regards,
Ismael
Thanks Ismael! Can you tell me what the difference is between looping or category specific? And where do I make those edits? It’s currently linking to a page that is not within it’s category.
Hi,
Thank you for the update.
To make the navigation loop back to the first item, set the Enfold > Blog Layout > Single Post Navigation to the third option (Loop post navigation). And to make the navigation cycle through the same category, you need to add the following filter to the functions.php file. However, as mentioned above, only one of these modifications or options will work.
/**
* post nav in same category
*/
add_filter( 'avf_post_nav_entries', 'avf_post_nav_entries_mod_same_cat', 10, 3);
function avf_post_nav_entries_mod_same_cat($entries, $settings, $queried_entries)
{
$settings['same_category'] = true;
return $entries;
}
Best regards,
Ismael
Thank you! That worked. You can close this ticket.