pixeldesigner Posted January 15, 2012 Share Posted January 15, 2012 I'm using the isotope jquery plugin and trying to achieve this effect dynamically because it will be for a premium theme: http://themetrust.com/demos/reveal/ In order to do this, I need to somehow add a "data-filter" attribute to the links outputted by <?php wp_list_categories( array('taxonomy' => 'portfolio_category', 'title_li' => '', 'echo' => 1) ); ?> and have the data-filter="THE CATEGORY NAME" dynamically. Here is another example of what I'm trying to achieve: http://themes.premiumpixels.com/scope/?page_id=1121 If you look at the source code of this theme, you can see: <li class="cat-item cat-item-9"><a href="http://themes.premiumpixels.com/scope/?portfolio-type=audio" data-filter="audio" title="View all posts filed under Audio">Audio</a> </li> Does anyone know how to go about doing this? Link to comment https://forums.phpfreaks.com/topic/255047-question-for-a-wordpress-expert/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.