Posts 2 Posts
Moving posts from categories into posts 2 posts connections (4 posts)

  1. faeronsayn
    Posted 3 years ago #

    Currently I have my website setup like the following.

    A custom post type for example TV Show has all the TV Show posts in there.

    Then I have posts, which are lets say episodes for these TV Shows. I've put these episodes into their own categories. So a categories name matches the TV Show, and all the episodes in that category are related to that TV Show.

    Then I use post meta field, do define the ID of the category in the TV Show pages. Then I am able to run some while loops to get all the posts from that specific category.

    This works, and is how i've set it up currently. The problem I feel is that in the long run, the amount of categories will definitely get overwhelming and may slow down the site.

    I am looking for a way to possible run a query to move all category posts into a connected state with their respective TV Shows, probably by determining the Category that they are in and matching that name with the TV Show in the custom post type.

    If this is possible, or any way to not manually do all these connections from the beginning, it would be great.


  2. faeronsayn
    Posted 3 years ago #

    Would this be possible?

  3. scribu
    Plugin Author

    Posted 3 years ago #

    It should be possible, but someone needs to write the code to do it.

    Try posting it as a mini-project on one of the sites mentioned here:


  4. faeronsayn
    Posted 3 years ago #

    ahh alright, I thought it could be as easy as running some filters or adding some functions to the theme's functions file.

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