Linking post types
-
Hi,
I have spent hours looking for a solution for the following but to no avail.As standard, WordPress currently has the Page and Posts post types, whereby a Page can be created, and Posts displayed on that page. I would like to duplicate this structure so that I can still have pages and posts, but I would like to add two more post types that interact in exactly the same way. That is to say I would like the duplicate post type of Pages to be called ‘Stores’ and the duplicate post type of Posts to be called ‘Deals’.
So I can create a page called Store1, Store2, Store3 etc, and then add deals to each of these stores. For example if I want to offer a 10% off deal at Store2 I can go to my admin area and click Add new deal, and assign it to Store2 so that it is only displayed on the Store2 page.
I have found several articles on how to add new post types but I can’t seem to find out how to get them to link to each other. Any help would be appreciated.
Thanks a lot
- The topic ‘Linking post types’ is closed to new replies.