Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1419463

    Hi,
    I have blog entries that are provided with a navigation in the detail view. How can I make it possible to navigate ONLY in the specific category? As soon as you reach the end of one category, entries from the other categories are automatically shown. This is not a desirable behaviour.

    #1419467

    Hey solidt,

    Thank you for the inquiry.

    Are you referring to the Enfold > Blog Layout > Single Post Navigation? If so, then you can add this filter in the functions.php file to exclude items that are not in the same category.

    /*
     * Single post navigation filter
     */
    function avf_post_nav_settings_cb($settings)
    {
    	$settings['same_category'] = true;
            $settings['loop_post_nav'] = false;
            return $settings;
    }
    add_filter( 'avf_post_nav_settings', 'avf_post_nav_settings_cb', 10, 2); 
    

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.