| | #1 |
| Designer & Front End Dev Join Date: 2012 Location: United Kingdom
Posts: 439
Thanks: 136
Thanked 134 Times in 87 Posts
|
Hey Everyone! My latest project is building a review site for the gaming niche. I am using the plugin "Widget Logic" to specify on which pages I want widgets to appear. Let's say I wanted a custom menu to appear on all of the child pages of page x, and all continuing child pages. I have found this code: "global $post; return (is_page(126) || ($post->post_parent=="126"));" But it only seems to display it on the child pages of x, any ongoing child pages it does not show up on. (i.e the widget does not appear on the child pages of page x's child pages) My knowledge on php is the very minimum. Any suggestions? I hope that makes sense LOL Joe Crosbie |
| I chose entrepreneurship over further education despite being laughed at by my friends and family.. I recently hit the "RESTART" button on my life, read my personal blog to find out how I did it :) | |
| |
|
| Bookmarks |
| Tags |
| child, pages, widget |
| |