Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_GET['filter_category']) && !empty($_GET['filter_category']))
- {
- $category = $_GET['filter_category'];
- }
- else
- {
- $category = 'networks';
- }
- if (isset($_GET['filter_network']) && !empty($_GET['filter_network']))
- {
- $network = $_GET['filter_network'];
- }
- else
- {
- $network = '';
- }
- if (isset($_GET['filter_recurring']) && !empty($_GET['filter_recurring']))
- {
- $recurring = $_GET['filter_recurring'];
- }
- else
- {
- $recurring = '';
- }
- 'post_type' => 'post',
- 'posts_per_page' => -1,
- 'tax_query' => array(
- 'relation' => 'OR',
- array(
- 'taxonomy' => 'category',
- 'terms' => array( $category ),
- 'field' => 'slug',
- 'operator' => 'IN',
- ),
- array(
- 'taxonomy' => 'network',
- 'terms' => array( $network ),
- 'field' => 'slug',
- ),
- array(
- 'taxonomy' => 'recurring',
- 'terms' => array( $recurring ),
- 'field' => 'slug',
- ),
- ),
Add Comment
Please, Sign In to add comment