Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #232877

    Hi there,

    I love the post-nav feature on post pages.

    1.) However, I need to split these groups somehow so it isn’t possible to navigate from one group to the next.

    For example, if you go to this post: http://www.onlinebiblecommentary.com/bible/bible-bios-jesus-christ/ you will see that the left nav is pointing to the book of Revelation because it is technically the previous post. Instead, I would like it to point to the last of the “Bible Bios” because it is meant to be in a different group than the “Online Bible Commentary” posts. Am I being clear enough?

    2.) If you go to this page: http://www.onlinebiblecommentary.com/bible/genesis/ you will see that since Genesis is the first post, the left AND the right nav go to the second post (Exodus), but I would like the left nav to link to the last post in this Commentary group (the book of Revelation).

    If I’m not being clear enough, let me know and I’ll try to explain it again. Basically, I would like to separate the Commentary pages from the Bible Bios pages in the post nav and loop the post nav within the same group of posts. I’m just kind of stumped as to how I can do this, so I’m sorry if it’s just really easy and I’m spacing on it.

    Thanks!
    UC

    #233071

    Hi understandchristianity!

    Thank you for using the theme. I hope you’re doing great.

    You can only filter the avia post navigation by post category. Add this on functions.php:

    add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1);
    function avia_same_category_filter($settings)
    {
    $settings['same_category'] = true;
    return $settings;
    }

    This will return all posts with the same category.

    Cheers!
    Ismael

    #233247

    Thanks, Ismael! That worked great for separating the two groups. However, the first in the Commentary group (Genesis: http://www.onlinebiblecommentary.com/bible/genesis/ ) still shows the second (Exodus) on both the left and right sides. The same goes for the last in the Bible Bios group (Titus: http://www.onlinebiblecommentary.com/bible/bible-bios-titus/ ) showing the next to last Bio (Timothy) on both sides.

    I assume this happens because Genesis and Titus are technically the first and last posts, but is there any way to prevent it from showing on both sides?

    Thanks again. You guys are awesome.
    UC

    #233822

    Hi!

    Are you planning to have two posts only? Maybe, you can hide the previous navigation. Add this on Quick CSS:

    .avia-post-prev {
    display: none;
    }

    Cheers!
    Ismael

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