How to use custom taxonomy in my_custom_sql
-
Hello,
I just found out about the performance optimized mla-tax-query-example.php and wanted to try it out. I have set up a custom taxonomy called pacf_gallery and I’m using the term slug to select the images. However, I can’t seem to get the syntax right, because I always get all the images displayed, regardless of what taxonomy they’re in.I enabled mla-tax-query-example.php as a plugin and I’m using this shortcode:
[mla_gallery mla_alt_shortcode="gallery" post_parent="all" my_custom_sql="pacf_gallery=malta2004"]
Previously I used this shortcode to get the results I wanted:
[mla_gallery] post_parent='all' mla_alt_shortcode='gallery' tax_query='array(array("taxonomy" => "pacf_gallery","field" => "slug","terms" => "malta2004"))' [/mla_gallery]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to use custom taxonomy in my_custom_sql’ is closed to new replies.