• I’m new both to plug-in development and to WordPress itself, so I apologize if I’m asking obvious questions here.

    I’m setting up a WordPress installation for a client, which will be making extensive use of static pages to create a much larger site than just the blog. I’m using the Semiologic CMS plug-in to generate a menu of pages automatically. The menu is ordered according to the menu_order column in the posts table. (Does that column exist without Semiologic?)

    Anyway, the problem is that there’s no good way to manage the menu_order column. It’s not listed on the Manage > Pages admin page, and there aren’t really (as far as I can tell) hooks to add it there. I can create a new admin page based on the old one, which may be the only option…but it would be nice if that page replaced the old one. Is there a way to do that, or an easier way to accomplish the same thing?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • According to this Codex page https://codex.www.ads-software.com/Template_Tags/wp_list_pages
    the sort_column menu_order parameter exists.

    And when you write/create a new Page (or even after that by editing them) you can give an “order number” in the Page Options – Page Order field.

    Thread Starter schvenk

    (@schvenk)

    Yes, but managing the page order by editing individual pages is awkward, particularly if you want to reorder the list. What I’d like to do is augment the admin interface so you can reorder while looking at the complete list of pages. That way it will be easy to see the whole list in order and to move things up and down.

    I am looking for something similar.
    It would be really helpfull if there would be a Page Management menu where the pages are ordered by their page order number, and in input field for each page in the menu to change their order number. This way it would be possible to change the order of the pages without switching between the Page Management menu and an individual page all the time.

    Does anyone know if this exists as a plug in or something, or , if not, how to write this yourself?

    Thanks.

    likoma

    (@likoma)

    Wouldn’t this be lovely!

    And if tehre any possibility to sort the Pages that are in the header, for example in fSpring theme?

    Just for the information here, if you use the widgets.php file, the ordering of the pages does not work until you change just a bit of code (that I found scanning the Internet with Google), that is:

    Replace:


    function widget_pages($args) {
    extract($args);
    $options = get_option('widget_pages');
    $title = empty($options['title']) ? __('Pages') : $options['title'];
    echo $before_widget . $before_title . $title . $after_title . "<ul>n";
    wp_list_pages('title_li=');
    echo "</ul>n" . $after_widget;
    }

    by…

    function widget_pages($args) {
    extract($args);
    $options = get_option('widget_pages');
    $title = empty($options['title']) ? __('Pages') : $options['title'];
    echo $before_widget . $before_title . $title . $after_title . "<ul>n";
    wp_list_pages('sort_column=menu_order&title_li=');
    echo "</ul>n" . $after_widget;
    }

    At least it worked of me. I use My Page Order plugin (https://www.geekyweekly.com/mypageorder) to ease the process.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘managing page order?’ is closed to new replies.