Posted By

jamiebrwr on 08/13/10


Tagged

wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jamalmohamed


Force Custom Template Selection


 / Published in: PHP
 

Place into fucntions.php

  1. /******* FORCE CUSTOM TEMPLATE SELECTION *********/
  2.  
  3. function my_template_redirect()
  4. {
  5. global $wp;
  6. if ($wp->query_vars["taxonomy"] == "clinic")
  7. {
  8. include(TEMPLATEPATH . "/taxonomy-clinic.php");
  9. die();
  10. }
  11. }
  12. add_action("template_redirect", 'my_template_redirect');

Report this snippet  

You need to login to post a comment.