Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #20384


    Thanks for a great theme! I wonder if I can change so that the “next” and “previous” link at the bottom of the portfolio single page only cycles though certain portfolio categories?

    For example, we’re planning of using portfolios both for our projects and for the co-worker page. And now when I click on the first co-worker, the previous link is a project. We would like to divide those categories.



    Are you usuing portfolio item categories? Because if you sort a list of portfolio items, and click on one, than only the portfolio items in that specific sort will be displayed when clicking the next button.





    Yes Im using the item categories. But Im not using the ajax version, so the portfolio items open up in a new page. It seems to be working correctly with ajax. Im prefering the single page view though, should it be working on that as well?


    Hi agarkitekter,

    In the single-portfolio.php file, remove the

    echo avia_post_nav();

    and replace it to the raw output for that function (with the same category limitation):

    <div class='post_nav_container stretch_full'>
    <div class='post_nav'>
    <div class='previous_post_link_align'>
    <?php previous_post_link('<span class="previous_post_link">&larr; %link </span><span class="post_link_text">'.__('(previous entry)','true','avia_framework'))."</span>"; ?>
    <div class='next_post_link_align'>
    <?php next_post_link('<span class="next_post_link"><span class="post_link_text">'.__('(next entry)','true','avia_framework').'</span> %link &rarr;</span>'); ?>
    </div> <!-- end navigation -->




    Hi Devin,

    I still can’t get it to work.

    I created a temporary login so you can see for yourself and maybe see whats wrong:

    Username: test

    Password: test

    You’ll see a previous link to a diffrent category in the bottom. We have two portfolio pages: “VÅRA PROJEKT” and “MEDARBETARE” under “OM AG ARKITEKTER”. The MEDARBETARE page only shows category items from the category “Medarbetare”, and VÅRA PROJEKT shows all other item categories. Im not using any parenting in the item categories.





    It is unfortunately not that simple to accomplish, due to a long time WordPress issue … The issue is discussed here (Purchase code hidden if logged out)(Purchase code hidden if logged out) -php?rq=1

    This syntax doesn’t seem to work on taxonomies other than category where 13,14,15 would be category id’s to exclude.

    <?php next_post_link('%link', 'Next post in category', FALSE, '13 and 14 and 15'); ?>

    However there is a plugin that claims to bypass this issue (Purchase code hidden if logged out) -same-taxonomy/

    Please hang on.



Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Portfolio next entry’ is closed to new replies.