• Valras_

    (@valras_)


    Hi,

    I’m new to wordpress and just in the process of building my first website with it.

    What I am trying to do is to use widget logic in a way that It displays a widget only on one specific child page of my site.

    the closest i’ve gotten to this is by applying this logic:
    global $post; return (in_array(19,get_post_ancestors($post)));

    but that obviously only limits to all of the children. I know there is a way I just cant figure it out O:
    Any advice is much appreciated!!

  • The topic ‘Plugin: Widget Logic – Displaying an Image on only one CHILD page’ is closed to new replies.