WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. faeronsayn
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. faeronsayn
    Member
    Posted 1 year ago #

    Would this be possible?

  3. scribu
    Member
    Plugin Author

    Posted 1 year 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:

    http://poststat.us/mini-freelancers/

  4. faeronsayn
    Member
    Posted 1 year 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

About this Topic