Taxonomy shows up twice on Custom Post Type
Taxonomy shows up twice on Custom Post Type
Taxonomy shows up twice on Custom Post Type
search results to show individual ACF fields from inside custom posts
as you use multiple $testimonials i suppose those are group values. then you need to use get_sub_field() in place of get_field() so it should look like $term = get_queried_object(); $testimonials = get_sub_field(‘testimonials’,$term); echo $testimonials[‘small_title’]; echo $testimonials[‘main_title’]; echo $testimonials[‘description’]; Please refer to ACF documentation when you use non classical fields. https://www.advancedcustomfields.com/resources/group/
How to use WP Backery on Wysiwyg ACF
Sending an AJAX request to a specific file is not the way to do AJAX in WordPress. This is because WordPress itself is not loaded by your file, so you wouldn’t be able to use WordPress functions without an error. There are two proper ways to handle AJAX requests in WordPress: Using the wp_ajax_ hooks: … Read more
ACF don’t save the selected value
you need to add a LIKE in your meta_query $args = array( ‘post_type’=> ‘recipe’, ‘meta_query’ => array( array( ‘key’ => ‘special_diets’, ‘value’ => ‘vegan’, ‘compare’ => ‘LIKE’, ) ), ); $query = new WP_Query($args); as explained here Count custom post types with a specific meta value
it looks like the problem is caused by the “Post Types Order” plugin I have installed Yes, I believe so because your code actually worked for me, but after I installed and activated the plugin, your code no longer worked as expected. I have it set to not order news post types, but for some … Read more
If i understand you correctly here you want to display some text under each of the category titles on your shop page. Instead of editing the template i would suggest using a hook. To do this you should move your code into functions.php. The complete code would look something like this: add_action(‘woocommerce_after_subcategory_title’, ‘wpse_add_custom_text_under_category_title’, 10); function … Read more
You can use Advanced Custom Fields Plugins for different custom fee fields for each selected category in the same post. You can download free acf plugin for wordpress.org https://wordpress.org/plugins/advanced-custom-fields/