Tax_query failing on Pro Theme v4.2.3

Hello,
We have created a custom element using the Classic Elements API. This custom element uses the “Select” control to display news stories by title. We are targeting a specific post categy using a tax_query but it is failing.

The tax_query works properly on X-Theme v7.2.3 but fails on Pro Theme v4.2.3. I’ve created a video that you can see in the next hidden comment.

Thanks.

Hi @timmichar,

Thank you for reaching out to us. Can you confirm that you are fully updated? (Theme and WP version). You can find the latest version numbers here: (https://theme.co/docs/version-compatibility) Then you can compare them to what’s installed on your site.

If everything is up to date then try replacing the tax_query with the following:

'tax_query' => array(
        array(
            'taxonomy' => 'news_category',
            'field'    => 'slug',
            'terms'    => 'viterbi-school',
            'include_children' => true,
            'operator' => 'IN'
        )
    )

If the issue persists then please get back to us with theURL/User/Pass of your WordPress dashboard as well as FTP credentials using the Secure Note functionality of the post to follow up the case.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.