Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1467021

    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?

    #1467022

    just checking in :)

    • This reply was modified 2 weeks, 6 days ago by valerieh.
    #1467166

    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

    #1467236

    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.

    #1467262

    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

    #1467836

    Thank you! That worked. You can close this ticket.

    #1467849

    Hi,

    Great! Glad to know that the filter worked. Please feel free to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘the last portfolio page “next project arrow’ is closed to new replies.