WordPress.org

Ready to get started?Download WordPress

Forums

Apply function in walker to children only (1 post)

  1. gashface
    Member
    Posted 1 year ago #

    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:

    http://pastebin.com/mgDg1fjU

Topic Closed

This topic has been closed to new replies.

About this Topic