Support » Themes and Templates » Make tags and categories play nicely

  • Alright! I am currently working on a site that is basically an affiliate virtual shop. I am using categories and tags to describe my posts (products). My categories are all brand names, and my tags are all sizes. Basically, how I have it set up now, when someone clicks on a tag (in a tag cloud), they are presented with the various brands in their size. That’s fine, since I have relatively few brands represented on my site, yet lots of sizes. However, when someone clicks a category, they see tons of sizes all of one brand. What I would like to do is when someone clicks a category (brand), they are presented with another tag cloud, where they can select their size. From there, they are led to the post that is within their category (brand), and within their size (tag). Of course, I would much prefer to have this dynamically generated within a template file. My thought is this: When someone clicks the tag within the tag cloud, instead of being taken to a page of categories within the tag, they are taken directly to the post that fits the category they are browsing, and the size they want to look at.

    What do you all think? Is it possible, or should I just create standard HTML pages listing all of the sizes within each category?

    Thanks a bunch to all that can help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I guess I should also add that I am using “pretty” permalinks, and the structure of those permalinks is based on the categories and tags that I use to define the various products (posts). In other words, it is possible to generate a permalink within a tag cloud by structuring PHP functions that call the categories and tags? Can I do something like:

    /<? tag php>/”>Product name

    I know this is not proper PHP syntax, but do y’all see what I am getting at here?

    Oops, didn’t use the code function…The above post was intended to say…

    <a href="<? category php>/<? tag php">Product Name</a>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Make tags and categories play nicely’ is closed to new replies.