[resolved] Help With <?php wp_list_pages() ?> Tag (3 posts)

  1. Andrew
    Posted 10 years ago #

    Hey there,

    I have a question with the wp_list_pages tag. Currently, I have the following in the argument section of the tag: 'exclude=21,15,18,19,20,22&title_li='
    I was wondering how to include this line of code in there as well: 'sort_column=time_created&show_date=created'

    I tried incorporating them into the same space like this:
    <?php wp_list_pages('exclude=21,15,18,19,20,22&title_li=', 'sort_column=time_created&show_date=created'); ?>
    But it didn't work.

    Anybody know anything about php?

    Mainly, what I'm trying to do is change the way the pages are sorted. I've got a horizontal nav bar on the site I'm working on, and it ended up with "Welcome" page on the right side of the navigation, and my client would like it to be on the left.



  2. oriecat
    Posted 10 years ago #

    I think you need to have it all together like so:

    <?php wp_list_pages('exclude=21,15,18,19,20,22&sort_column=time_created&show_date=created&title_li='); ?>

  3. Andrew
    Posted 10 years ago #

    Thanks very much!

Topic Closed

This topic has been closed to new replies.

About this Topic