WordPress Custom Post types parent/child relationship
-
I am building a website for an art gallery using WordPress. For some of the content I am using Custom Post types.
I have 4, Artists, Exhibitions, Works Available and Artist News. I need the Artist Custom Post type to act as the parent and the other 3 to act as the child then on the front end I need to have a menu on the Artists page like this:
Jo Blo (Artist)
- Artist News
- Work Avaliable
- Exhibitions
What I need to do but can’t work out how is to set it up so I can chose an Artist as a parent for 1 of the 3 child custom post types.
I know that if I put ‘attributes’ in the line supports in the functions.php file when I register custom post type as well as set hierarchical to true it as the parent box but it only allows me to chose another post from that type.
is it possible to chose a parent for a custom post from another custom post type and if so how do I set that up?
Any help would be greatly appreciated.
Cheers
- The topic ‘WordPress Custom Post types parent/child relationship’ is closed to new replies.