• I have created a walker that displays the featured image of a page and description..

    Is there a way so that the featured image display part only gets applied to children, i.e. Alternatively is it possible to make it so it only works when a featured image is set?

    <ul>
    <li>*doesnt get applied on parent
    <ul>
    <li> *gets applied here</li>
    
    </ul>
    </li>
    </ul>
    
    Walker here:

    https://pastebin.com/mgDg1fjU

  • The topic ‘Apply function in walker to children only’ is closed to new replies.