Home › Forums › Back End › Custom Taxonomies and Post Types › Re: Custom Taxonomies and Post Types
July 23, 2010 at 2:38 pm
#80295
jamygolden
Member
I would explode() the forwardslashes, and get the last (or wherever the taxonomy name is in the url) array, create a variable and do something like:
Code:
if($exploded_tax == ‘tax’){
// insert special single page code
}
else{
// insert code for all single pages
}
// insert special single page code
}
else{
// insert code for all single pages
}
(within the single.php)
http://php.net/manual/en/function.explode.php
http://php.net/manual/en/language.types.array.php