How to use $taxonomy child ID for other .php file
-
Dear friend
I did register Taxonomy Cruise
Code :register_taxonomy("cruises", array("cruise"), array("hierarchical" => true, "label" => "Cruises", "singular_label" => "cruise", "rewrite" => true));In “Cruises” have 02 category with ID = 50 and 53
(taxonomy=cruises&tag_ID=50&post_type=cruise)
(taxonomy=cruises&tag_ID=53&post_type=cruise)I did create two php file
How to use custom template for Id50 and Id53 (different)
I have code in archive.php:
elseif($taxonomy == 'cruises') { include(TEMPLATEPATH . "/archive-cruises.php");}
How to direct ID50 to archive-1.php and ID53 to archive-2.phpPlease help me !
Thanks
The topic ‘How to use $taxonomy child ID for other .php file’ is closed to new replies.