Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 28th Oct 2012, 12:07 PM   #1
Designer & Front End Dev
 
Joe Crosbie's Avatar
 
Join Date: 2012
Location: United Kingdom
Posts: 439
Thanks: 136
Thanked 134 Times in 87 Posts
Default
Widget to appear on child pages
Share on: 
fb share twitter share gplus share more share

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 :)
Joe Crosbie is offline  
Closed Thread


Bookmarks

Tags
child, pages, widget


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 06:31 AM.