WordPress.org

Ready to get started?Download WordPress

Forums

ReOrder Post Within Categories
Well done! (6 posts)

5 stars
  1. AndyMacKay
    Member
    Posted 10 months ago #

    This plugin made my day!

    For anyone trying to make it work with custom post types, it does as advertised. The settings needed are
    'show_in_nav_menus' => true,'public'=>true, 'show_ui'=>true, 'hierarchical' => false
    and for your custom taxonomy
    'hierarchical' => true

  2. lunarbaby
    Member
    Posted 2 months ago #

    Hey Andy - i'm hoping you might be able to help me to get this working. I'm using the Custom Post Type UI. For my custom post type, i don't see "show_in_nav_menus=true" The rest are their and set properly.

    So desperate to get this working!!

    Thanks for your time.
    Trish

  3. AndyMacKay
    Member
    Posted 2 months ago #

    Hi Trish,

    I didn't actually use the Custom Post Type UI, but created the custom post types within my functions.php file.

    My guess is that you are seeing the options above in wordpress admin, rather than within the plugin code?

    I might still be able to help, but is the above assumption correct before I continue?

    Andy

  4. lunarbaby
    Member
    Posted 2 months ago #

    Hi Andy - thanks for the reply - yes, options are within the admin area.

  5. AndyMacKay
    Member
    Posted 2 months ago #

    Apologies for taking so long to get back to you. The internet on my island has been down the last couple of days so this is the only chance i had.

    Anyway, I made a fork of the plugin https://github.com/BinaryGeometry/custom-post-type-ui/commit/94c86b91c9702ff9203fa0e3703ce10359120214

    So you can either download the new custom-post-type-ui.php file, or else look at the commit message to see what changes you need to make to the plugin you have installed already.

    Basically all we are doing is adding a single key pair onto the end of the arguments array for the native WordPress create_custom_post_types() function.

    I can't actually test it as I don't have WordPress installed, but let me know how you get on if you would as I would like to push the changes back into the original repository if you find that this solves the compatibility issue you where having.

    - 'labels' => $cpt_labels
    + 'labels' => $cpt_labels,
    + 'show_in_nav_menus' => true

  6. lunarbaby
    Member
    Posted 1 month ago #

    Hey Andy - thanks for the work on this. I tried your reworked code, but it did not change the result - when trying to reorder the custom post type within each custom category, it doesn't work - the menu disappears on the web page and the posts do not reorder.

    Really appreciate the time you took to give it a try!
    Trish

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.