All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Get all tags used for posts in specified category!

  • # April 17, 2013 at 10:06 pm

    How can I do the following.
    This a few step process here.

    1. Get all the ‘tags’ which are used for posts that are in the category ‘Work’

    2. Then make that array of ‘tags’ unique so there are no repeats.

    3. List the array of ‘tags’ but mark up each tag like the provided examples:

    tagsArray = #(Digital Painting, Photos, Young People)

    tags should then be placed into the html marked up like

    Digital Painting
    Young People

    I hope this makes sense and that someone can help me. Thank you very much everyone.

    # April 17, 2013 at 10:15 pm

    If anyone is wondering why I’m doing this its because I’m trying to proceduralize chris coyier’s filterblocksV2 into wordpress.

    If anyone else has a better method by all means share. But based on the way he does it, this would be a similar way of doing it while allowing for dynamic updating of new tags and everything else.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed