New answers tagged

0

I rewrote the function based on a few other posts I have seen online and now have the following code which works without any errors. I am still open to any further suggestions on the best way to streamline this code even further it it can be. Thanks again function downloads_shortcode($atts){ extract(shortcode_atts(array( 'download_type' => '' ), $...


0

WordPress is generating the tax query for you - when you register a custom taxonomy, it also registers what's known as a query var. This is a "key"-type value that means you can simply do this: new WP_Query([ 'age_from' => 2 ]); ... and WP will transform that to: WP_Tax_Query([ [ 'taxonomy' => 'age_from', 'terms' => 2, ...



Top 50 recent answers are included