Cross link several post types
-
I have a website with a set of post types, and I want to be able to create relations between posts from all post types. So a post from any type can be connected to any other post from any other type. What would be the most efficient way to do this?
Right now I use something like this to dynamically create all possible conections:
https://gist.github.com/superinteractive/6933727
This loops through an array with post types but iterates the start of the array with every step to avoid double connections (since they are reciprocal).
This however seems to create extremely expensive queries when retrieving connection on the front-end. Theoretically it shouldn’t take that much horse powers to retrieve the connections, so I’m thinking there must be a more efficient way.
Hope you have some suggestions!
- The topic ‘Cross link several post types’ is closed to new replies.