[Resolved] [Plugin: Widget Logic] Getting widget to display on child pages of a child page
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:
And here is a child page of business-formation:
- The topic ‘[Resolved] [Plugin: Widget Logic] Getting widget to display on child pages of a child page’ is closed to new replies.