Setting Up a Wordpress Function in theme's function.php File
- by user1609391
I am trying to create the below function in my theme's function.php file and call it from my taxonomy.php file via
query_brands_geo('dealers', 'publish', '1', $taxtype, $geo, $brands);
all variables are set in taxonomy.php.
The below query works perfect if I put it directly in my taxonomy.php file. What am I missing to make this work as a…