• Hi there,

    Any way to hide the widget if no child pages exist? I am getting a duplicate if there are no child pages :

    ex if children:

    About Us
    – who we are
    – what we do
    – our mission statement

    So the side bar shows all 4 pages…

    If a page has *no* child pages, I don’t want the widget to show at all ( so the single page doesn’t show in the sidebar also… how can I achieve this?

    I know you can add to the “show on selected option as:

    about-us*
    products*
    services*
    case-studies*
    resources*

    and the widget will show on those pages and their child pages… but I’d like this to happen automatically if a child page is added to another page that isn’t listed here… this possible?

    http://wordpress.org/extend/plugins/hierarchical-pages/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wlindley

    (@wlindley)

    The next version of the plugin should suppress all output in the extreme case where only the current page is listed.

    It would also be possible to modify the plugin to make it configurable whether to display child pages at all, and independently, whether to display ancestor (parent) pages at all.

    Plugin Author wlindley

    (@wlindley)

    Version 1.6.1 has not yet been released but you might try it from github. Use the “Download ZIP” button on the right of this screen, and replace the current contents of this plugin’s directory.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide if no child pages?’ is closed to new replies.