wordpress - WP: Create multiple taxonomy archives from the same tax and link term links to them based of the unique query the term is listed in -
i have cpt called "clinical trials." there 3 taxonomies associated "clinical trials" —"locations", "cancer-types", , "status". have query set return list of "cancer-types" terms, if contain posts term "current-trial" "status" taxonomy associated. now, terms link cancer-type-taxonomy archive page. have modified archive query return current queried object if term "current-trial" "status" taxonomy associated posts.
now need repeat process taxonomy "status”, term "completed-trial". generating list of terms easy, terms link cancer-type archive page modified return posts associated "status" term "current-trial".
i need create second archive page "cancer-type" returns posts associated “completed-trial" term "status" taxonomy. how can have 2 unique taxonomy pages based off of same taxonomy , link term links taxonomy based on new query.
Comments
Post a Comment