Custom Post Type Permalinks
[resolved] Archive taxomomies with many CPT (3 posts)

  1. toojee
    Posted 2 years ago #


    I have a CPT hotel and a taxonomy city and I want to list all hotel in city like http://www.domain.com/hotel/city/new-york/. This is working with the plugin!

    But I have to add another CPT house which work whith city too. So when I go in http://www.domain.com/hotel/city/new-york/ all the hotel are listed but all the house too! How to split the data with CPT?



  2. toojee
    Posted 2 years ago #

    I find a solution, i go into plugin page php and in function add_tax_rewrite_rules (line 486):
    I add &post_type='.$post_type after each lines between line 532 - 535.

    Now for http://www.domain.com/hotel/city/new-york/ I have the list of hotel in new york
    And http://www.domain.com/car/city/new-york/ I have the list of car rent in new york
    And http://www.domain.com/city/new-york/ I have both of them, car and hotel!

  3. Toro_Unit (Hiroshi Urabe)
    Plugin Author

    Posted 2 years ago #

    The changes will be applied in the next version.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type Permalinks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic