Posts 2 Posts
[resolved] How to list all the other related Posts (5 posts)

  1. sara cannon
    Posted 5 years ago #

    I have two CPT's.. one "places" and one "articles" that are connected through p2p.

    When I am on a place CPT page I can list all the articles. but when I'm on the Articles, I don't just want to list what place it is connected to, but all the other articles that are connected to the place that it is connected to. ex "Explore more articles connected to this place"

    I feel like there is an easy way to do this but I can't seem to place my finger on it.

    thank you.

  2. scribu
    Plugin Author

    Posted 5 years ago #

  3. iamdangavin
    Posted 4 years ago #

    I think she meant something like this. I posted a question on this topic as well.

    ps. this is some crazy hackery... but it is working...

    I am looping through to get the "places" ID and then within that loop I am looping through to get the "articles" associated to that specific "places" ID...

    [Code moderated as per the Forum Rules. Please use the pastebin]

  4. sara cannon
    Posted 4 years ago #

    Indeed! thank you!

  5. scribu
    Plugin Author

    Posted 4 years ago #

    I see. I made a tutorial specifically for this:


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic