Tabbed Category List for Custom Post Types
Hope someone here can help me. Ive been commissioned to convert a template to wordpress that includes a portfolio…
I built a portfolio page from a custom post type. that works.
Items are categorized with a custom taxonomy named port_cats. that works also
On the portfolio page, there is tabbed content built with jquery to show and hide items by category. So theres a category nav menu, plus each item wrapped in classes to show and hide.
Im stuck on plugging this in correctly, and am SO CLOSE. I have the category nav list working, but having trouble getting worpress to read the correct category slug inside the loop.
Heres how the jquery needs to work:
for the menu:
<li><a href="#" rel="category-slug">Category Name</a></li>
to hide and show the items:
<ul> <li class="category-slug"> title/thumb/content </li> </ul>
Heres my code:
Whats happening is that worpdress is repeating the last category slug on every display item…
can anyone tell me what i have wrong here???
- The topic ‘Tabbed Category List for Custom Post Types’ is closed to new replies.