Cross-Referencing Custom Content Types
-
Hi all,
I’m trying to set up two custom content types on a site such that they reference each other. One of the custom types, lets call it Stores, has a title, hours, description, and a list of services offered, for example Grocery, Pharmacy, Seafood.
I also have a custom type called Services Offered, which is a title, description, and a list of stores that offer each service.
I’ve set these both up to list all of the available options using a simple MySQL query,SELECT post_title, ID FROM [+table_prefix+]posts WHERE post_type='stores'
and
SELECT post_title, ID FROM [+table_prefix+]posts WHERE post_type='services'
But now I’m stymied by how to get the two to link such that when editing Store #4 to say that it doesn’t offer Pharmacy services, that it refers to the same data as the Pharmacy Services Offered custom type. The client I’m designing this for wants only to edit this once on either end, not twice.
Any ideas, suggestions, help? Thanks in advance!https://www.ads-software.com/plugins/custom-content-type-manager/
- The topic ‘Cross-Referencing Custom Content Types’ is closed to new replies.