WordPress.org

Support

Support » Plugins and Hacks » [Plugin: My Category Order] Custom Taxonomy Order and Code Improvements

[Plugin: My Category Order] Custom Taxonomy Order and Code Improvements

  • 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;

    }

    http://wordpress.org/extend/plugins/my-category-order/

Viewing 12 replies - 1 through 12 (of 12 total)
  • chodorowicz
    Member

    @chodorowicz

    Could You share the way you added support for ordering custom taxonomies?
    Thanks in advance

    saharusa
    Participant

    @saharusa

    I Would like to know that too 🙂

    saharusa
    Participant

    @saharusa

    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.

    Aaron
    Member

    @akeith2002

    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

    Aaron
    Member

    @akeith2002

    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
    Member

    @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:

    http://geekyweekly.com/mytaxonomyorder

    Aaron
    Member

    @akeith2002

    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.

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

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

    cinematic
    Participant

    @cinematic

    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.