WordPress.org

Ready to get started?Download WordPress

Forums

Post Types Order
[resolved] Direct access to re-order page (4 posts)

  1. lowe_22
    Member
    Posted 2 years ago #

    Hello,

    I have a number of post types nested within the menu of another one:

    Talks
    > Series
    > Speakers

    I'm using show_in_menu => edit.php?post-type=talks in my regsiter_post_type.
    I'd like to use post re-ordering on the 'Series' type and add a custom submenu item thus:

    Talks
    > Series
    > Re-Order Series
    > Speakers

    I tried to use the direct link:
    edit.php?post_type=series&page=order-post-types-series

    But that throws a 'You do not have sufficient permissions to access this page.' error.

    Is there a way I can integrate Post Types Order into a custom add_sub_menu item?
    BTW, I'm using Advanced Post Type Order

    Thanks!
    Olly

    http://wordpress.org/extend/plugins/post-types-order/

  2. nsp-code
    Member
    Plugin Author

    Posted 2 years ago #

    Hello Olly,
    You should play with the code where it set the additional menus options at
    add_submenu_page('edit.php?post_type='.$post_type_name, 'Re-Order', 'Re-Order', userdata_get_user_level(), 'order-post-types-'.$post_type_name, array(&$this, 'SortPage') );
    You can find more details on how to use the add_submenu_page at http://codex.wordpress.org/Function_Reference/add_submenu_page

    Or you can simply go for Advanced Post Types Order version which already include that feature.

    Thanks

  3. lowe_22
    Member
    Posted 2 years ago #

    Hey,

    I'm actually already using Advanced Post Types. How can i set this up using the Advanced plugin?

    Cheers

  4. nsp-code
    Member
    Plugin Author

    Posted 2 years ago #

    You will need to make sure the Series post type is active on the setting area and this should do it.
    If for some reason this does not works please contact us for a fast check/fix

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic