Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.