Last active
March 10, 2017 06:42
-
-
Save brlafreniere/5a33b2ab82c99a69394449545bd120bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach ($_GET as $get) { | |
foreach ($tax_names as $tax) { | |
if (isset($_GET['spg_'.$tax->name])) { | |
$remove_filter = '<input type="button" onclick="window.location=\''.get_the_permalink().'\';" class="button button-submit" value="'.__("Remove Filter","infiwebs").'"/>'; | |
$display = 'tax_query'; | |
$posts_from_filter[] = array( | |
'taxonomy' => $tax->name, | |
'field' => 'slug', | |
'terms' => $_GET['spg_'.$tax->name] | |
); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment