WordPress.org

Ready to get started?Download WordPress

Forums

Set the parent of a custom post type (2 posts)

  1. brad_magnus
    Member
    Posted 9 months ago #

    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: http://screencast.com/t/2nol8XP6I

    Looking at the codex: http://codex.wordpress.org/Function_Reference/register_post_type

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

  2. brad_magnus
    Member
    Posted 9 months ago #

    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...

Reply

You must log in to post.

About this Topic