• hi,

    i have a problem with the page order in the sidebar. the pages are listed in the order i create them. but i want it in another order (f.e. page 5 should be the second one in the sidebar). how can i do that?

    thanks for comments

Viewing 15 replies - 1 through 15 (of 18 total)
  • On the page editing/creating page (heh) there is a Page Order field (under Page options) where you can enter a number, and then in the wp_list_pages tag you put sort_column=menu_order as a parameter (thus wp_list_pages('sort_column=menu_order'); if there are no parameters already)

    Thread Starter holzbude

    (@holzbude)

    okay, i have done it, but there is no effect. this is my wp_list_tag now, perhaps there are some mistakes inside:

    <?php wp_list_pages (‘title_li=<h2>’ . __(‘Pages’) . ‘</h2>’); (‘sort_column=menu_order’); ?>

    thanks for help!

    holzbude, it seems that the list_pages thing only takes one argument as its input. I tried to correct your input like this:

    wp_list_pages(‘title_li=<h2>’ . __(‘ ‘) . ‘</h2>’, ‘sort_column=menu_order’ );

    which, I think, should be the way to have 2 arguments. Didn’t succeed. However without the headline there was no trouble, this one did the trick:

    wp_list_pages(‘sort_column=menu_order’ );

    But then you probably have to make the headline manually..

    This should work, holzbube:

    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>&sort_column=menu_order'); ?>

    Holzbude: This is the way, I tested it:

    wp_list_pages(‘title_li=<h2>’ . __(‘Holzbudes Pages ‘) . ‘</h2>&sort_column=menu_order’);

    It takes a ‘&’ to seperate parameters

    Oh shit – a clever guy beat me 🙂

    I personally would prefer not to have a headline for the pages, so perhaps I will make an empty space instead of ‘Pages’

    Thread Starter holzbude

    (@holzbude)

    yeah, thanks superkim, it works fine!

    I was looking for something similar. Its actually all in the codex:
    http://codex.wordpress.org/Template_Tags/wp_list_pages
    another reason why wordpress > *

    Michiel

    (@michiel)

    Hi, I checked from the codex and used:
    ” <?php wp_list_pages(‘sort_column=menu_order&title_li=’); ?> “

    However the order is NOT correct displayed in my horizontal nav bar.. what goes wrong here?
    0000000000000000000000000000000000
    Solution found: forgot that by default all pages are “0” in the order…

    Great! Thanks for the help! =)

    thanks again Kafkaesqui
    ^_^

    I have the following:

    <?php wp_list_pages(‘title_li=’ . __(‘ ‘). ‘&sort_column=menu_order’); ?>

    I want to use (‘depth=1’) so that my subpages do not show. But when I use that tag, the “pages” header shows up in normal font, no decoration. Can anyone help?

    Thanks!

    nevermind… found the answer:
    <?php wp_list_pages(‘depth=1&sort_column=menu_order&title_li=’); ?>

    got mine ordered right…thanks all. one quick other question. how do i get rid of the dot right next to the pages menu? i screw stuff up when i try to do it.

    http://www.shakblog.com

    YES!! How do you get rid of the bullet in front of the word Page????? I have tried every which way I can think of to effect this with CSS. But I can’t make it work.

    ANYBODY??

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Page order in sidebar’ is closed to new replies.