• Thanks for this plugin. I was able to reconfigure it to work for a custom taxonomy.

    I also made a few changes to the code that I thought might be helpful for the next upgrade:

    line 41:

    add_action('admin_menu', 'mycategoryorder_js_libs');
    to
    add_action('admin_print_scripts', 'mycategoryorder_js_libs');

    CSS changes:
    I wrapped the submit button in the standard wordpress <p class="submit> ... </p>


    ul#order{
    width:300px;
    margin:10px;
    padding:10px;
    list-style:none;
    background-color:#fff;
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
    }
    li.lineitem {
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
    background-color:#ddd;
    color:#000;
    cursor:move;
    font-size:13px;
    margin-bottom:5px;
    padding:0.5em 1em;
    }
    li.lineitem:hover{
    background-color:#c3c3c3;
    color:#010101;

    }

    https://www.ads-software.com/extend/plugins/my-category-order/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Could You share the way you added support for ordering custom taxonomies?
    Thanks in advance

    I Would like to know that too ??

    Well, after looking at the code, things are pretty simple,

    I needed to ad custom taxonomy order as part of custom post ui menu, I added the subpage with the correct handle, after that you can change the queries to use your taxonomy instead of the ‘category’ taxonomy.

    Can you be a little more specific on what you did to make this work? A client of mine is requesting this and I would love to get your expertise on it. I am not down with all the 3.0 lingo yet.

    Thanks!

    Aaron,

    Are you looking specifically for support for a custom taxonomy? I’m hoping to have a new plugin out that will support any taxonomy you have defined.

    Andrew

    Yeah. Exactly. Unfortunately my client needs it done today so I won’t be able to utilize your future plugin but thanks for the quick response!

    Alain

    (@alainotjens)

    Hi Andrew,

    Is this still something you’re working on? (hope so)
    I now have a very quick&dirty solution (duplicating your plugin for every post type and replacing names etc)…

    Alain

    Aaron and Alain,

    New plugin is in progress and I hope to release it this weekend along with a plugin to order custom post types. I’ll try and update some of these threads or keep an eye out for this page to go live:

    https://geekyweekly.com/mytaxonomyorder

    I am still looking for a solution for this. Any help is appreciated ??

    i simply replaced taxonomy = ‘category’ with taxonomy = ‘mycustomtax’ and it works perfectly.

    ijaas

    (@ijaas)

    i added a select box to the top to change the taxonomy.

    Modified code can be found at https://snipplr.com/view/48599/mycategoryorder-custom-taxonomy-mod/

    Thank you, ijaas. Very helpful!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: My Category Order] Custom Taxonomy Order and Code Improvements’ is closed to new replies.