[Plugin: Widget Logic] widget logic – how to limit to children of one particular parent?
-
Hi
I’ve been trying this for ages – I would like all the pages of a particular parent (including the parent) to contain the same set of widgets. I KNOW I can make this happen with the magnificent widget logic, but I can’t work out the code to use. Please, please help!
It’s got to be something like:
if ($post_parent->ID == 101)
(so I’m trying to limit it to all the children of post id 101. But that doesn’t work….Also, similarly, if I assign a set of pages a custom field (eg category: employment) is there a way of defining the widgets for the sidebars of that category?
I’m sorry to be so dense, but I’m new to php…. and I’m going a bit crazy.
- The topic ‘[Plugin: Widget Logic] widget logic – how to limit to children of one particular parent?’ is closed to new replies.