WordPress.org

Forums

Post Types Order
[resolved] portfolio-press and ordered categories (7 posts)

  1. neon22
    Member
    Posted 2 years ago #

    I have a set of Portfolio posts as defined by the custom plugin for the portfolio-press theme. http://wordpress.org/extend/themes/portfolio-press

    I have them sorted in date order as per usual.
    I display them a category at a time by using hierarchichal menu structure of categories.
    I.e. Top level is Work. Under that is Construction, Figure, Video, etc
    So when I select Construction I see only portfolio posts with category construction and sort is by reverse date.
    All is good with this scheme except for one thing.

    Problem is when I am looking at a specific portfolio post - there are two links on the page. They link to the preceding and following posts. These are not neccessarily in the same category.

    I want these links to follow a custom order.
    I want the regular top level portfolio page to continue to show the portfolio pages in reverse date order.

    I've tried the "post types order" plugin and the "Category Order and Taxonomy Terms Order" plugin. Neither have any effect on link order in the pages.

    The nav links look like this:

    <div class="nav-previous"><?php previous_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Previous post link', 'portfolioplus' ) . '</span>' ); ?></div>
    				<div class="nav-next"><?php next_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Next post link', 'portfolioplus' ) . '</span> %title' ); ?></div>

    Any ideas ?

    http://wordpress.org/extend/plugins/post-types-order/

  2. neon22
    Member
    Posted 2 years ago #

    Whoops.
    Specifically I want them to navigate to the preceding portfolio posts in the same category. Ignoring portfolio posts in other categories.
    php hopefully looks better here:

    <div class="nav-previous">
       <?php previous_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Previous post link', 'portfolioplus' ) . '</span>' ); ?>
    </div>
    <div class="nav-next">
       <?php next_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Next post link', 'portfolioplus' ) . '</span> %title' ); ?>
    </div>
  3. nsp-code
    Member
    Plugin Author

    Posted 2 years ago #

    I understand what you mean, the problem is that the default WordPress functions previous_post_link() and next_post_link() does not support such thing. However we extended this functionality and created 2 new functions previous_post_type_link() and next_post_type_link(). As those require a diferent menu_order structure, it's available only for Advanced Post Types Order plugin.

  4. neon22
    Member
    Posted 2 years ago #

    So to confirm:
    If I were to purchase this plugin I could change the php in each portfolio and use your new function.
    This new function would use the custom order as defined by your plugin (adjacent posts in same hierarchical group - then move to next group)
    While at the same time if I kept the current php for the portfolio gallery page - it would keep all posts in reverse date order.

    Is that how it would work ?

  5. nsp-code
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, i confirm the above, using the functions i mentioned you will be able to show previous/next for posts within the exact taxonomy term you specify. Then the default WordPress previous_post_link/next_post_link will still return same data as before.

  6. neon22
    Member
    Posted 2 years ago #

    OK. well tried ordering it a couple of days ago - no sign of it. please check your paypal emails...

  7. nsp-code
    Member
    Plugin Author

    Posted 2 years ago #

    I'am not sure i understand your last message. However if you own the Advanced Post Types Order feel free to contact us directly at electronice_delphi@yahoo.com for a fast support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic