Support » Themes and Templates » Taxonomy Term Page

  • Hello,

    I’m discovering custom post types and taxonomies in WP 3.0.

    I’ve created a custom post type called products and a taxonomy called types containing different terms.

    Calling shows me the products associated to that taxonomy. However what bothers me is that calling up returns a 404. I’d like to have a page that queries the different terms in so I can list the titles and descriptions of the different terms with links to the term pages. just shows me the home page but returns the query_string ?taxonomy=types however there seems to be no set request, matched_rule or matched_query variables set.

    Can anyone help me out. Maybe a hack or plugin ?


Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi

    Thanks for your reply.

    That’s where the problem lies. The page doesn’t seem to “call” the taxonomy since it shows me the home page.

    However like i said, caling does show interesting vars in the debug. For instance $wp_query->query->taxonomy == "types"

    It seems as though WP doesn’t now how to handle taxonomy requests directly, only terms.

    Also, if I call up WP returns a 404. In this case $wp_query->query->category_name == "types" so it seems to think I’m calling a category. I find that strange since my category base is set to /blog/.

    call like this and create a page taxonomy.php and put the same code of category.php in this new file.

    I think I may have not been clear in my explanation. Here is the site in question :

    I created a taxonomy with product types.

    `Taxonomy : univers
    + chateaux
    + golf
    + restaurants`

    Calling up shows my taxonomy-univers.php template with the golf related products.

    I’d like it so that when I call up I get a page with query that essentially contains the different terms (chateaux, golf, restaurants) so I can have a page with entrance points to the different product lists. Right now, calling up that URL gives me a 404 since WP thinks it’s looking for the post category “univers” which does not exist.

    Here is what is displayed in my debug info


    + query_vars
    +– category_name = univers

    + query_vars
    +– category_name = univers
    + query_string = category_name=univers
    + request = univers
    + matched_rule = (.+?)/?$
    + matched_query = category_name=univers
    + did_permalink = TRUE


    Can an administrator move this thread to Hacks. I think it’s more relevant there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Taxonomy Term Page’ is closed to new replies.