WordPress.org

Ready to get started?Download WordPress

Forums

Want Pages 2B displayed w/ most recent on top & password pages not on side. (6 posts)

  1. djenyns
    Member
    Posted 9 years ago #

    How do I do this?

    Code looks like this:

    <?php wp_list_pages('sort_column=time_modified&show_date=created&title_li=<h2>' . __('A2 Pages') . '</h2>' ); ?>

    Right now I have it as the top one is the one that has been modified the latest, but how do I just have the pages show the most recent on the top.

    Also I do not want my password protected pages to be shown on the side.

    HELP!

  2. djenyns
    Member
    Posted 9 years ago #

    anyone?

  3. Minna
    Member
    Posted 9 years ago #

    put time_created instead of time_modified -- or pick one you like from the Codex (see under sort_column)

    As for the password protected pages, I'm not aware of a direct way to exclude them, but the wp_list_pages tag lets you exclude pages by their ID. See the same Codex page under exclude parameter

  4. djenyns
    Member
    Posted 9 years ago #

    time_created puts the most recent blog entered on the bottom. I need it on the top.

  5. Minna
    Member
    Posted 9 years ago #

    then add sort_order=DESC to the parameter list. That is also found on the Codex page... right below sort_column

  6. djenyns
    Member
    Posted 9 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.