• Hi,

    I have several different taxonomies and a search form that lets users find the item they are looking for through a combination of taxonomy searches.

    For example you might want to find a car by a certain manufacturer and a certain colour (sorry I’m a Brit!) but when I get the results back I want to display them with the template I have for manufacturer rather than colour, however it keeps going to the colour taxonomy template and I cannot figure out a way to force it to use the manufacturer taxonomy template.

    Any suggestions?

    Many thanks, Matt

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    If you always want to use the manufacturer template in place of colour, you could just copy the manufacturer template and give it the colour template name.

    Otherwise, to selectively use the manufacturer template, hook the “{$type}_template” filter. In your case, this should resolve to ‘colour_template’. Code in the needed logic to return the manufacturer template filename for the correct situation, otherwise return the name passed to your function, the colour template name.

Viewing 1 replies (of 1 total)
  • The topic ‘Taxonomy Priority’ is closed to new replies.