[Plugin: Widget Logic] Getting widget to display on child pages of a child page
-
Hi,
The answer may be staring me in the face, but I can’t seem to figure it out. I’ve got a page ‘entrepreneur’ with a child page ‘business-formation’ with a number of child pages. I need my widget to display on ‘business-formation’ and all of its child pages. I’m currently using the following code:
global $post; return (is_page(‘business-formation’) || ($post->post_parent==”business-formation”));
However, the widget only displays on the business-formation page and none of its child pages. The business-formation page is here:
https://64.22.105.98/~vcorpser/entrepreneur/business-formationAnd here is a child page of business-formation:
https://64.22.105.98/~vcorpser/entrepreneur/business-formation/incorporationHelp!
Sarah
- The topic ‘[Plugin: Widget Logic] Getting widget to display on child pages of a child page’ is closed to new replies.