• As the title suggests, I’d like to edit some of my pages’ order in batches. Unfortunately there doesn’t seem to be any native way to it within WordPress. Quick Edit is not an option since it’s roughly 500 pages.

    Is there a workaround, a fix, or a plugin? I can’t seem to find anything.

    Any suggestions are appreciated.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • There is https://www.ads-software.com/plugins/metronet-reorder-posts/
    but it is drag and drop, not batches.

    It seems like you could write a simple SQL query to adjust the menu_order field, but you don’t say what you want to change. If you need more space between numbers, you could multiply each by two. Or you could set them all to the same number or a random number. What is it you want?

    Thread Starter jfbprivate

    (@jfbprivate)

    Thank you Joy!

    I totally forgot, in this case I’m going to reset all pages to 0 so they’ll be in alphabetical order, which is what I want.

    Drag and drop isn’t gonna help here. Unfortunately I’m not exactly code-savvy either.

    Thanks.

    Thread Starter jfbprivate

    (@jfbprivate)

    The reason they’re numbered in the first place is because I had to use a bulk plugin to add them. Unfortunately it doesn’t have the option to define the page order during the process—only the parent page.

    I’m going to reset all pages to 0 so they’ll be in alphabetical order, which is what I want.

    They are still hierarchical, so where is it that they would be alphabetical?
    And why so many pages? Would they be better as posts?

    Thread Starter jfbprivate

    (@jfbprivate)

    Well, as soon as the page order is set to 0, the pages will be in alphabetical order being children of one parent. Whenever I’m going to add a new page (also set to 0), it will be sorted alphabetically within that group of pages too. The thing is, if I don’t set the others to 0, the new ones won’t be fit in alphabetically. I would have to re-order all pages by plus/minus one in order to “squeeze” the new one in correctly. They’re not posts either, they’re pages. It’s pretty easy actually—the main issue is that the bulk page add plugin doesn’t have the option to set any kind of page order which is why they started somewhere around 300 up to 800. Now if add a page it can either be 0–which wouldn’t be alphabetical—or 801–which wouldn’t be alphabetical either. I would then have to re-order each page manually anyway. So all I’m trying to achieve here is to set all pages to 0, and my problem would be solved.

    Thread Starter jfbprivate

    (@jfbprivate)

    If pages don’t have a specific order they are indeed hierarchical—alphabetical that is.

    Well, I didn’t actually run this query since I don’t want to reset my pages, but this looks about right:
    UPDATE xx_posts SET menu_order=0 WHERE post_type=’page’
    (I think the forum will interpret the backticks instead of showing them.)
    You can go into phpMyadmin and choose to run a SQL statement on the posts table. It should fill in the table name for you, and put the column names in backticks.

    https://dev.mysql.com/doc/refman/8.0/en/update.html

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Bulk Edit Page Order’ is closed to new replies.