Not working for pages
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Not working for pages’ is closed to new replies.