WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: My Category Order] Custom Taxonomy Order and Code Improvements (13 posts)

  1. LaneLGD
    Member
    Posted 4 years ago #

    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/

  2. chodorowicz
    Member
    Posted 4 years ago #

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

  3. saharusa
    Member
    Posted 3 years ago #

    I Would like to know that too :)

  4. saharusa
    Member
    Posted 3 years ago #

    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.

  5. Aaron
    Member
    Posted 3 years ago #

    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!

  6. froman118
    Member
    Posted 3 years ago #

    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

  7. Aaron
    Member
    Posted 3 years ago #

    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!

  8. Alain
    Member
    Posted 3 years ago #

    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

  9. froman118
    Member
    Posted 3 years ago #

    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

  10. Aaron
    Member
    Posted 3 years ago #

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

  11. ijaas
    Member
    Posted 3 years ago #

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

  12. ijaas
    Member
    Posted 3 years ago #

    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/

  13. cinematic
    Member
    Posted 3 years ago #

    Thank you, ijaas. Very helpful!

Topic Closed

This topic has been closed to new replies.

About this Topic