• Resolved hotpixelsdesign

    (@hotpixelsdesign)


    When the plugin is activated, the sort order of pages is changed. That applies to both the list-view (/wp-admin/edit.php?post_type=page) and also to the the “Parent Page”-dropdown visible in the “Page Attributes”-section when editing a single page (/wp-admin/post.php?post=XX&action=edit).

    Once the plugin is deactived, the desired (default) order (menu_order) is back in place.

    Can you point me into a direction what needs to be adjusted in order to display pages hierarchical?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Kevin Behrens

    (@kevinb)

    @hotpixelsdesign Do you have another plugin that provides sort column configuration? I can add the ability to force the sort column to a desired value. But if I know more about your current implementation, I might be able to accommodate it without additional configuration steps.

    Permissions hooks into the ‘get_pages’ filter, maintaining the sort_column value that is passed in.

    • This reply was modified 3 years, 7 months ago by Kevin Behrens.
    Thread Starter hotpixelsdesign

    (@hotpixelsdesign)

    @kevinb Thank you for your fast reply. I used an older plugin to test the sorting (https://wordpress.org/plugins/cms-page-order/) but it seems something might be wrong with this plugin and the way the sorting information is saved, since sometimes the page order is not saved correctly. I will look into this first.

    It’s just a bit strange that WordPress seems to sort the pages correctly when no sort_column value is provided (default sorting) and this sorting differs from the default behaviour of the plugin or is changed as soon as the plugin is activated.

    In Settings -> Editing the plugin provides the option to order the Page Parent dropdown by title. Could you point me into a direction how i could add more sorting options on this settings page by altering the plugin code for more tests?

    EDIT: Using the build in function to change the order (Page Attributes -> Order) the menu order is not shown correctly when using the plugin. As soon as the plugin is activated, sometimes even the set parent is not showing up correctly when editing a page. It is working if you use Quickedit (at /wp-admin/edit.php?post_type=page) but not on the side in the Page Attributes box (/wp-admin/post.php?post=XX&action=edit). The pages are not ordered in the correct way or even missing.

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @hotpixelsdesign. Sorry, but I’m not sure this is a question about PublishPress Permissions? I tried the “CMS Page Order” plugin but really only saw error messages.

    Thread Starter hotpixelsdesign

    (@hotpixelsdesign)

    @stevejburge I dont see the issue as resolved. The error messages shown by CMS Page Order are warnings, since the plugin is old and not using the latest Walker_Page arguments. This can be easily fixed.

    But even when not using the plugin but changing the page order using the build in function (setting a number via Page Attributes -> Order) causes the bug. Once Permissions is activated, the sorting is not correct and sometimes a page parent is even displayed as “No Page Parent” in the dropdown field.

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @hotpixelsdesign

    We’re not able to recreate that error.

    Please use the support form on our site to send more details.

    You can include screenshots and your site’s “Site Health” information.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin changes sort order of pages in Dashboard’ is closed to new replies.