I am looking for a plugin that will allow me to manage which menu appear on a specific part or certain pages of my site, is there a plugin available that can do this?
Tx
lorax
10:41 am on Sep 3, 2012 (gmt 0)
Welcome to WebmasterWorld SOllie, You could use the Widget Logic plugin.
Sollie
10:49 am on Sep 3, 2012 (gmt 0)
Tx I see it is compatible up to 3.3.2, does it have any issues with the latest WP version?
lorax
12:14 pm on Sep 4, 2012 (gmt 0)
Not that I"m aware of. I have it installed on several sites and have no problems.
Sollie
3:18 pm on Sep 11, 2012 (gmt 0)
Hi Again,
How would I display a widget on subpages of a menu?
Sollie
3:34 pm on Sep 11, 2012 (gmt 0)
This seems to be working fine;
I added the code below to functions.php
"function is_subpage() { global $post; // load details about this page
if ( is_page() && $post->post_parent ) { // test to see if the page has a parent return $post->post_parent; // return the ID of the parent post
} else { // there is no parent so ... return false; // ... the answer to the question is false } }"
And added the following to my widget; "is_page(446) || is_subpage(446)" 446 being the page_id of the parent post.