The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Display posts from same name term different CPT (1 post)

  1. andersonmultimedia
    Posted 3 years ago #

    I have 2 custom post types each with an identical set of taxonomy terms.

    On single posts for CPT1 I wish to display in the sidebar widget a list of posts from CPT2 who's term matches the current post's term.

    CPT1: program_listings
    Taxonomy: category
    Terms: term-a, term-b, term-c

    CPT2: post
    Taxonomy: post_categories
    Terms: term-a, term-b, term-c

    Something that will pull like:

    if current program_listings term is 'term-b'; then display 5 posts from post_categories term 'term-b'

Topic Closed

This topic has been closed to new replies.

About this Topic