WordPress.org

Ready to get started?Download WordPress

Forums

Ambrosite Next/Previous Post Link Plus
[resolved] Posts must share multiple taxonomy terms (4 posts)

  1. andy_codecreate
    Member
    Posted 1 year ago #

    Hi,

    How can I show posts that share multiple taxonomies? For example only navigate through posts which have two or more taxonomy terms in common.

    Awesome plugin by the way.

    Andy

    http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/

  2. ambrosite
    Member
    Plugin Author

    Posted 1 year ago #

    The only way to do that is with a correlated subquery. There is some discussion and an example given here, in case you want to try hacking the plugin code:

    http://www.ambrosite.com/plugins/next-previous-post-link-plus-for-wordpress#comment-9523

  3. studioactiv8
    Member
    Posted 1 year ago #

    I like the plugin too!!
    I am having a little trouble getting it to work in a single taxonomie.

    see bottom of page for links
    http://geoconinc.com.s157459.gridserver.com/projects/land-development-ld01/
    using project type: Land Development

    post type: projects
    taxonomie
    name: projecttype
    slug: ptype

    here is the code I am using

    <div id="port-nav"><div id="poject-lft"><?php next_post_link_plus( array('in_same_tax' => true, 'link' => 'back project' ) ); ?></div>
    
    <div id="poject-rt"><?php previous_post_link_plus( array('in_same_tax' => true, 'link' => 'next project' ) ); ?></div>

    thanks for anyones suggestions.

    jD

  4. ambrosite
    Member
    Plugin Author

    Posted 1 year ago #

    Is your custom taxonomy set up as hierarchical or non-hierarchical? The plugin only works with hierarchical taxonomies.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.