ReOrder Post Within Categories
Well done! (6 posts)

  1. AndyMacKay
    Posted 2 years 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
    Posted 2 years 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.

  3. AndyMacKay
    Posted 2 years 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?


  4. lunarbaby
    Posted 2 years ago #

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

  5. AndyMacKay
    Posted 2 years 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
    Posted 2 years 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • ReOrder Post Within Categories
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.