• Resolved rubymuse

    (@rubymuse)


    I’m using the Isotope js library for animated client-side sorting of a custom post type. Each post thumbnail needs a class name for each (custom) taxonomy term the post is tagged with, and its position within that term’s ordering.

    For example, in my archive template, an item might have classes “term1-17 term2-4” to indicate the post is in position 17 for term1 and position 4 for term2.

    My template code needs to compose those class names.

    I’ve looked at the plugin code, and I see an internal function _get_order($post_type, $term_id, $start=0, $length=null). I could theoretically use that (though it’s not public).

    Just want to make sure I’m not missing a publicly supported feature that would help me here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    My template code needs to compose those class names.

    I understand.

    I’ve looked at the plugin code, and I see an internal function _get_order($post_type, $term_id, $start=0, $length=null). I could theoretically use that (though it’s not public).

    yes makes sense to reuse this functionality to achieve this.

    I have exposed the necessary part that functionality to retrieve the entire raking within a term ID and given post type through a new function get_rpwc2_order() which you can call from the front-end.

    I just released v2.11 with this new function, and written a short FAQ #18 for more details.

    Let me know if that works for you.

    Thread Starter rubymuse

    (@rubymuse)

    Wow, now that’s what I call responsive! Thanks so much, I’ll give it try.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    well the changes were minimal and the idea worth implementing ??

    do leave a review when you have a moment of spare, and if your client has a some spare budget which not get me a beer or two ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Retrieve order of post in cat, for js sorting’ is closed to new replies.