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

    Hi!

    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.

    #107440

    Hi,

    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.

    Thanks,

    Nick

    #107441

    Hi,

    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?

    #107442

    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>
    <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>
    </div> <!-- end navigation -->
    </div>
    <?php

    Regards,

    Devin

    #107443

    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:

    http://agwp.agarkitekter.se/projekt/tomas-beckman/

    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.

    Regards,

    Tomas

    #107444

    Hi,

    It is unfortunately not that simple to accomplish, due to a long time WordPress issue http://core.trac.wordpress.org/ticket/17807 … The issue is discussed here http://wordpress.stackexchange.com/questions/42234/thumbnails-on-next-previous-links-in-custom-post-type-single-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 http://wordpress.org/extend/plugins/previous-and-next-post-in-same-taxonomy/

    Please hang on.

    Thanks,

    Nick

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

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