Tag Info

New answers tagged

0

Hate to answer my own question, but I fixed it. Seems the issue was with how the pages were getting added to the menu via the WordPress admin. After removing and adding them back, the sidebars appeared just fine. So, in the event someone else has a similar problem, just delete the pages and re-add them.


0

The easiest way to do it is to not use pages for that, but instead create a new post types for "hills" and/or "australia" this can be a PITA but you need to understand that the combination of post type and slug should be unique (the reason it is done this way is to let you change the permalink structure without having to update whole of the content). ...


1

No, no you cannot. Once a slug is used by a page, it cannot be used by other pages. It also can't be used by other posts, regardless of post types There is a Trac ticket on WP Core that's attempting to fix this so that a slug can be reused by post type, but that would still only allow you one use of your page slug. The chances that you could do what you're ...


0

Before reading the solution Bravokeyl provided I had finally, through trial and error, come up with a solution that worked for me. I'm not sure which is the better of the two, or the most correct, I only know that mine worked for me, for the problem I had. This is the code I used to display full-width layout or sidebar-menu layout: if( is_page() ...


0

Level-0 --Level-1 ----Level-2 ------Level-3 ----Levelanother-2 --Levelanother-1 check whether page is top level page (it may have children or not) ? $post->$post_parent == 0 or is empty get_post_ancestors( $post ) returns only Level-0 Pages. Is a child page and is a Level-1 page or Levelanother-1 only ? $post->$post_parent > 0 or is not empty ...



Top 50 recent answers are included