Description:
I have created a CPT called ‘partners’. Within this CPT a custom taxonomy has been created that links a partner to a country. Every country is therefore a term within the taxonomy ‘Countries’. Each term within this custom taxonomy has an ACF field in which the matching continent can be set.
We want to use this data to build a layout that shows an overview of all countries. The filters should make it easier to get to the right country.
Step-by-step reproduction instructions:
I’m attaching some screenshots of my query settings here:
Query settings
Meta Query settings
Query code
Errors
Fatal error
Fatal error : Uncaught Error: Call to undefined method WP_Term_Query::have_posts() in /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-content/plugins/cwicly/core/includes/dynamic/api/cc-query-api.php:482 Stack trace: #0 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-includes/rest-api/class-wp-rest-server.php(1143): WP_Query_Route_To_REST_API->get_items() #1 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respond_to_request() #2 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch() #3 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-includes/rest-api.php(394): WP_REST_Server->serve_request() #4 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-includes/class-wp-hook.php(307): rest_api_loaded() #5 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #6 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-includes/plugin.php(524): WP_Hook->do_action() #7 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-includes/class-wp.php(398): do_action_ref_array() #8 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-includes/class-wp.php(770): WP->parse_request() #9 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-includes/functions.php(1330): WP->main() #10 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-blog-header.php(16): wp() #11 /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/index.php(17): require(‘/home/deb56708n…’) #12 {main} thrown in /home/deb56708n36/domains/companyfuel.dev/public_html/dbi/wp-content/plugins/cwicly/core/includes/dynamic/api/cc-query-api.php on line 482
Link: https://dbi.companyfuel.dev/
Environment info
- WordPress version: 6.0.2
- Cwicly Plugin version: 1.2.5.1
- Cwicly Theme version: 1.0.3