Display field of post type based on taxonomy of another post type
-
Hi!
I have got a bit of a nut to crack considering my php abilities (improving day by day thanks to this forum). Here is the example, would be great to get to know the php to achieve this:
I created something like this using the ‘More’ suite of wp plugins:
Custom Post Type 1: Cars
Custom Post Type 2: ManufacturerCustom Taxonomy for Post Type 1: Company (to attribute a manufacturer to the post)
Custom Field for Post Type 2: Company website link
I would like to:
Within the single.php, i would like to read out the corresponding Manufacturer Website as provided in the field for posts of Post Type 2, based on the company taxonomy entry in Post Type 1.
This way I want to save myself having to add the ever repeating BMW homepage info to all posts that feature a BMW car for example. Respectively for all other manufacturers and cars…
At the same time I would like to not display any links on build-in wordpress posts.
I hope the above makes sense and a tip for a solution would be greatly appreciated.
Best
Chris
- The topic ‘Display field of post type based on taxonomy of another post type’ is closed to new replies.