• I have encountered a case with pages where they are not rendered as submenu items, but instead appear on the top-level of the menu. This only occurs for pages and not other CPTs.

    I have determined that it is related to if(is_post_type_hierarchical($post_type ) condition on line 753-767 in walkers/SubmenuWalker.php. I am not yet sure what this code is meant to do or why I cannot display pages (which I have assigned a custom taxonomy to). I know this isn’t a normal case, but still it is a possibility.

    What is the purpose of this case for pages? Will it display children of a page automatically? How is that determined?

Viewing 1 replies (of 1 total)
  • Thread Starter 1000camels

    (@1000camels)

    Is there a way I can disable this code being applied to Pages. Yes, they are hierarchical, but I am not using them that way and this plugin causes lists of pages to not be seen inline, rather than under a menu.

Viewing 1 replies (of 1 total)
  • The topic ‘Not working for pages’ is closed to new replies.