Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Possible Duplicate:
Custom Taxonomy specific to a Custom Post type

I have a custom Post type called "Freebies" which is displayed differently than rest of the posts (using single-freebies.php). I also have a custom taxonomy called "resources" which contains different type of resources like "icons", "templates" etc... All my posts in the post type are displayed at

every post in the custom post type has a resource attached to it. The goodies are also listed at

What I want to do is that the permalink post as

resource-term is the resource to which the post belongs....

Till now I have figured out the following "alternate" methods

  • Alt. Method 1 - (We are not using the custom post type in this method) Creating a category "freebies" so that the posts type will appear as and using the resource taxonomy with a slug of freebies such that they are displayed at or for example However this method will not involve creating the custom post type. This method works provided there is no post with post name same as the resource term to which it belongs otherwise there may be a conflict for instance where icons is the post name with resource same as icons.
  • Alt. Method 2 - Making the slug of the custom post type and the custom taxonomy the same i.e. freebies. So the custom post type are displayed at and the resources are displayed at
  • Alt Method 3 - Displaying the resources using and the freebies at using the same base or else cancel their display. We can also redirect to
  • Original Method - I know the process (iguess) but I dont know the htaccess rule for it.The process is as follows: Upgrading the the URL 1 level from to to which the post belongs)/post-name. I don't know whether dynamic HTACCESS rules exist for modifying and upgrading the URL according to the resource to which the post belongs.

Please, suggest a way to achieve this...any other method is also highly appreciated.

share|improve this question

marked as duplicate by toscho Jul 6 '12 at 9:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.