Open athossin opened 7 years ago
Did you try doing just a simple tax_query, without all that other stuff? Just to see if it works?
![Uploading session.png…]() I can control it from admin site using tax query, But how can i control from front side?
On Mon, Nov 14, 2016 at 3:29 PM, Ivan Dorić notifications@github.com wrote:
Did you try doing just a simple tax_query, without all that other stuff? Just to see if it works?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ivandoric/WordPress-Custom-Query/issues/1#issuecomment-260287320, or mute the thread https://github.com/notifications/unsubscribe-auth/ATtZKThyizFP2uOzC9y3Y848aP0yhbaUks5q-Cn_gaJpZM4KxGMT .
What I'm asking is if you tried to do something like this:
$args = array(
'post_type' => 'football_fixture',
'posts_per_page'=>30,
'tax_query' => array(
array(
'taxonomy' => 'session',
'terms' => $season_slugs,
'field' => 'slug'
),
)
)
and then trying to display football_fixtures. Just to see if your tax query is working. So without all the other queries you have in your code.
yes, it is working. but not filtering
Did you try doing meta_query before the tax_query?
And also did you try doing only meta_query to see if it works. It looks pretty complex.
During creating team latest result filter, I have the following codes but it does not work. It shows the corrcet url: As for example: If I want to filter the data of 2016-17 season then it shows following url:
I watched your youtube video on custom filter where you used meta query and key, but I need filter the data using custom taxonomy ; session, . When I echo out the following codes then it show 2016-17, so its working.But the data is not filtering.
Following is my code which shows the latest result of all seasons.
<?php endwhile; ?> <?php wp_reset_postdata(); ?>