Make tags and categories play nicely (3 posts)

  1. honestaeb
    Posted 8 years ago #

    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!

  2. honestaeb
    Posted 8 years ago #

    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?

  3. honestaeb
    Posted 8 years ago #

    Oops, didn't use the code function...The above post was intended to say...

    <a href="http://www.site.com/<? category php>/<? tag php">Product Name</a>

Topic Closed

This topic has been closed to new replies.

About this Topic