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

    there is the code to obtain this – left and right arrows only leads to same category postings:

    add_filter( 'avia_post_nav_settings', 'enfold_customization_same_cat' );
    function enfold_customization_same_cat( $s ) {
    	$s['same_category'] = true;
    	return $s;
    }

    thats nice but i have installed events manager and without that code above – there are the same post nav arrows left and right. But with the code above not.

    What have i to do to get it here too. Navigation only in one event-category with post nav style ?

    Thanks

    #417634

    Hey Guenter!

    Thank you for using Enfold.

    I’m sorry but we don’t provide support for third party plugins so you have to contact the plugin author. Anyway, if you want the filter to work only for default posts, use this:

    
    add_filter( 'avia_post_nav_settings', 'enfold_customization_same_cat' );
    function enfold_customization_same_cat( $s ) {
        if(is_singular('post')) $s['same_category'] = true;
    	return $s;
    }
    

    Cheers!
    Ismael

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