WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. toojee
    Member
    Posted 10 months ago #

    Hi!

    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?

    thanks

    http://wordpress.org/plugins/custom-post-type-permalinks/

  2. toojee
    Member
    Posted 10 months 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
    Member
    Plugin Author

    Posted 10 months ago #

    The changes will be applied in the next version.

    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic