• Hello,

    What I am trying to accomplish is adding parameters to only certain pages in the wp_list_pages tag. For example, I would like to add a “<span>” after certain pages and not all of the ones in the list. The example below may better illustrate this…

    wp_list_pages(‘link_after=<span>hi</span>’)– Again, only apply this to certain pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m not aware of a built in way to do this. You can try parsing the output of the function and injecting HTML with PHP. I’ve done it with jQuery when I needed to add extra content for dropdown navigation.

    Thread Starter bmil21

    (@bmil21)

    Ok, I’ll give that a try.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Selective Parameters for wp_list_pages’ is closed to new replies.