I’m using jigoshop as main ecommerce plugin.
Jigoshop use Taxonomies call, product_cat and product_tag.
In my theme I use a default (h5bp) 404.php, so every time a tag doesn’t exist I get the default 404.
But I need to have a special template that give a THIS TAG DO NOT EXIST
how can I do this?
I’m using pointless:
@@@
<?php
if (is_tax()){
jigoshop_get_template( 'product_taxonomy-no.php' );
}else{
jigoshop_get_template( 'product_taxonomy-no.php' );
}
?>
@@@
thanks
If you want to use an entirely different template, you could filter
404_template
and check query vars for a specific taxonomy:You could also just put logic similar to the above in your 404 template and use that single template for all 404s, check
$wp_query
for what query vars are set and print some text accordingly. addvar_dump( $wp_query );
to your template to see what query vars get set under different conditions.