Forums

Calling up a taxonomy list with a URL (query) (1 post)

  1. Sebastien Couture
    Member
    Posted 2 years ago #

    I posted this in the themes thread but I think it's more relevant here.
    http://wordpress.org/support/topic/taxonomy-term-page?replies=6

    Here is the site in question :
    http://www.coffrets-luxe.com/

    I created a taxonomy with product types (listed in the menu). For now only Golf has a product.

    Taxonomy : univers
    + chateaux
    + golf
    + restaurants

    Calling up http://www.coffrets-luxe.com/univers/golf shows mytaxonomy-univers.php template with the golf related products. Great.

    I'd like it so that when I call up http://www.coffrets-luxe.com/univers/ I'd like it to query so that WP returns an object that essentially contains the different terms (chateaux, golf, restaurants) so I can have a page with entrance points to the different product lists. Basically a page listing the different terms in univers. 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

    WP_query
    + query_vars
    +-- category_name = univers

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

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Sebastien Couture
  • This topic is not resolved
  • WordPress version: 3.0