• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t understand why you want custom post types for this. You get the wrong structure that way. I think I would do it using page templates instead.

    Thread Starter ptron

    (@ptron)

    Yeah I am starting to think that would of been the better way.
    I thought Custom Posts would a of been much simpler for the client as they don’t want to do a lot of work. I may need to re-think it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Custom Post types parent/child relationship’ is closed to new replies.