Support » Fixing WordPress » Set the parent of a custom post type

  • I’ve got a custom post type set up called “Companies”. On a static page “Founders & Companies” I’m pulling in the Featured image of the CTP. When the user clicks the featured image, they are taken to the CTP with the Companies info. My issue is that the “current_page_parent” is set to Blog as reflected in the navigation highlighted and the breadcrumb.

    How do I make the parent of my entire CTP “Founders & Companies”? I’ve looked around but haven’t seen anyone actually find a solution for this issue.

    See a screengrab:

    Looking at the codex:

    I see hierarchical but I don’t get how to use it, or if that’s even the right thing to do?

Viewing 1 replies (of 1 total)
  • I attempted to use hierarchical argument with supports as shown in the codex. But that only allows me to make a CTP post a child of another CTP post. I need the entire CTP to be a child of a page, not a child of the blog. I really hope this is possible…

Viewing 1 replies (of 1 total)
  • The topic ‘Set the parent of a custom post type’ is closed to new replies.