Support » Fixing WordPress » 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:

       <li class="category-slug">

    Heres my code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Whats happening is that worpdress is repeating the last category slug on every display item…
    can anyone tell me what i have wrong here???


Viewing 1 replies (of 1 total)
  • ok, ive pasted the code into pastebin here

    to clarify, what Im trying to do is echo a custom category slug to use it as a class identifier.

Viewing 1 replies (of 1 total)
  • The topic ‘Tabbed Category List for Custom Post Types’ is closed to new replies.