The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress: Displaying “related” custom posts

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #44636

    Maybe I’m missing something here, but my brain is having trouble solving this.

    I have two custom post types. Service and Case_Studies. I have a page that displays the service where I would also like to display three Case_Studies that are somehow attached to the service.

    I could write up separate templates for each service, but that would be scary. I could write up some if thens….if Service = Planning, display Case_Studies from category X, but that would be difficult to maintain if adding a new service.

    Maybe a category parent-child set up?

    Any ideas?


    Doesn’t sound too difficult. I would attach a category or custom taxonomy to those you are trying to combine and output that category or taxonomy.


    Thanks Chris, I needed that. I attached the custom taxonomy to both of them, not just one. Next I used taxonomy.php for the template and was able to alter the query in different spots to pull everything attached to that category.

    Muy bueno. Gracias.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.