• Resolved Tony Zeoli

    (@tonyzeoli)


    Hi,

    I’ve ticked the checkbox under Support for Page Attributes, but it only displays the numerical text field for Post Order in the meta box and not the Post Hierarchy in terms of Parent > Child drop-down menu.

    I had converted these entries with Post Type Switcher from Page to my new Post Type and they are showing the “-” next to the Post Title in the List View, but there’s no option in the Quick Edit or the Edit view to manage those relationships.

    I saw a few posts here (https://www.ads-software.com/support/topic/hierarchical-custom-post-type-not-showing-parent-drop-down-option/) suggesting to tick the Support Page Atribures tick box, but nothing on what’s actually in the meta box to select from.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Tony Zeoli

    (@tonyzeoli)

    I do have Hierarchical set to “true” if you were going to ask that.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    the hierarchical being set to true is the only required condition from what I’ve always seen in terms of telling WP core that it should render that dropdown, however I also know that it’s using wp_dropdown_pages to render the actual dropdown. I believe that will only return results if the pages are set to publish so if you have At least 2 published, it should show so that you could make at least a parent/child relation between those 2 pages. If they’re all draft or only 1 is published, then likely nothing will show for a dropdown.

    Thread Starter Tony Zeoli

    (@tonyzeoli)

    Okay, thanks. I’ll check that. I do have a number of pages published already. Let me go and work on that and come back with the results should that not work.

    Thread Starter Tony Zeoli

    (@tonyzeoli)

    Okay, I figured it out. Before I used Post Type Switcher to switch the Post Type from a Page to a Speaker (post-type), those specific pages already had a parent-child relationship, so when I moved them over to the post-type of Speaker, they kept their relationship under the Pages post-type and the drop-down did not display. Once I pushed them back from Speaker to Pages, set the drop-down to main page and the pushed them back with the Post Type Switcher to Sepaker, they all dropped their “-” in the list view and when I clicked the Edit view to view the editor, they all were able to view the now visible drop-down. So, if anyone is using Post Type Switcher in the future, they may want to set the Page to have no parent page before they migrate them to the Post Type they want to marry them to.

    My follow up question is, I want the URL now to be: domain.com/speakers/speaker-name, but when I click the View link I only get /domain.com/speakers and I don’t have the option to pick a Page, only other Speaker pages from the Post Type itself.

    Is there some way to list Pages under the post-type drop down so I can set the parent to be the /spearkes page?

    Thread Starter Tony Zeoli

    (@tonyzeoli)

    Oh, forget it. I figured it out. I had some rogue redirects from copying the site over and duplicating everything. I figure it out. I’m all set now.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Good to hear you managed to figure these parts out, and good to know regarding the previously existing parent/child relationships that were already set. Given what I suspect for Post Type Switcher, it potentially doesn’t blank out those and just changes the post type column.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Page Attributes Does Not Display Parent Drop Drown’ is closed to new replies.