Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #438858

    When watching a post, it is possible to display the next (and previous) post via the avia-post-nav/entry-info-wrap element. Very nice feature, especially the thumbnail of that next item that appears when mouse over !
    But the problem is when I display the last post of the current category, I don’t want to show posts from another category !
    So how can I limit the display of that element to only posts of the current category ( or categories) ?

    Or I can say that way:I have posts in a category News, and other posts in a category Articles. When scrolling between News posts, I just want to see News posts, and not Articles posts.

    Thanks.

    #438869

    if you are using a child theme it is possible to stay only in the same category by adding to your child-themes functions.php the following:

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

    Perfect, this is exactly what I need.

    Thanks a lot !

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to scroll between posts for a category ?’ is closed to new replies.