Support » Plugin: Post Types Order » portfolio-press and ordered categories

  • Resolved neon22

    (@neon22)


    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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • neon22

    (@neon22)

    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>

    Plugin Author nsp-code

    (@nsp-code)

    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.

    neon22

    (@neon22)

    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 ?

    Plugin Author nsp-code

    (@nsp-code)

    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.

    neon22

    (@neon22)

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

    Plugin Author nsp-code

    (@nsp-code)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘portfolio-press and ordered categories’ is closed to new replies.