Grow your CSS skills. Land your dream job.

WordPress wp_list_pages

  • # January 26, 2009 at 2:49 am

    The Question
    I’m not an expert on WordPress, but I am learning fast. I understand that the wp_list_pages generate <li> markup for each page within wordpress. Lets say I have the following markup for the static HTML page..

    The Nav

    Code:
  • Home

The <span> tags are used there to create my rounded border and reflective material under the button. (I also have the box expandable)
But when i insert the WordPress wp_list_pages I won’t get the following output without editing the core wordpress include files. My question is there a way that I can make this work without editing the core include files. I’m looking at this to be a theme and do not want to require the user to edit the core wordpress files to make this work. In the case that if they want to change themes, my theme might potentially break the other themes due to the change in the include file..

# January 26, 2009 at 4:40 pm

Check out the codex:
http://codex.wordpress.org/Template_Tags/wp_list_pages

I think the link_before and link_after paramaters might be able to help.

# January 26, 2009 at 11:17 pm

Thanks, Chris for the help.. I didn’t realize it was added in 2.7..

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".