Retrieve order of post in cat, for js sorting
-
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.
- The topic ‘Retrieve order of post in cat, for js sorting’ is closed to new replies.