Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Custom Taxonomies and Post Types Re: Custom Taxonomies and Post Types

#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
}

(within the single.php)
http://php.net/manual/en/function.explode.php
http://php.net/manual/en/language.types.array.php