Support » Plugin: Smart Passworded Pages » Menu Order instead of Post Date?

  • Love the plugin, but when the plugin redirects, it sends it to the last posted page. Might want to consider going by the menu order so a user can organize the child pages.

    Line 115:

    $args = array(
    ‘sort_order’ => ‘asc’,
    ‘sort_column’ => ‘menu_order’,
    ‘hierarchical’ => 1,
    ‘child_of’ => $parentForm,
    ‘parent’ => $parentForm,
    ‘post_type’ => ‘page’,
    ‘post_status’ => ‘publish’
    );

    https://wordpress.org/plugins/smart-passworded-pages/

Viewing 7 replies - 1 through 7 (of 7 total)
  • pitroceloj

    (@pitroceloj)

    That’s what I needed, thanks for posting. Redirecting to a page based on the menu order makes much more sense and makes sorting easier, in my opinion.

    It would be great if redirect could be controlled by simply adding the page id in the shortcode.

    Menu order is good too. Is there a way to wrap that code in a function rather than edit the plugin code and have it over-written when there is a plugin update

    Would love to be able to specify which page to redirect to too.

    Plugin Author Brian Layman

    (@brianlayman)

    Actually, the code for adding a Page ID is already in there.. I could see about making menu order an option for the next release.
    I’ll be giving these plugins some love sometime in the next month and see what I can do.

    I agree with everyone here that sorting by ‘menu_order ASC’ is preferred, and I actually modified my installation of this plugin in that way (as Jaredam did). Thanks @brian Layman for making this cool plugin. It’s just what I needed. 🙂

    Actually, the code for adding a Page ID is already in there

    Where do I enter the Page ID. I would like it to redirect to the first page as set in the page order field of the page editor in WP.

    Hello –

    Just recently discovered this as we were having the same issue with being redirected to the wrong “first page” upon login. I hate making modifications to plugin files but had no choice in this instance. When can we expect this to be included into the plugin? This is a far more logical solution and provides an easier way to order what page comes first upon redirection.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Menu Order instead of Post Date?’ is closed to new replies.