ACF under category name in shop page [closed]

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

Display posts every specific day

You need to specify the return-format of the acf-field as ‘l’ & then modify your query as follows: $todayName = date(‘l’); $schedules = new WP_Query([ ‘posts_per_page’ => -1, ‘post_type’ => ‘serie’, ‘meta_query’ => [ ‘relation’ => ‘AND’, [ ‘key’ => ‘status’, ‘value’ => ‘1’, ‘compare’ => ‘=’, ], [ ‘key’ => ‘release_date’ , ‘value’ => … Read more

Display of Custom Fields based on conditional if/and according to category/tag choice

$hb1, $hb2 and $hb3 are boolean variables, therefore if ( in_category($hb1, $this->post->ID) ) is always FALSE. Try the following code: $hb1 = in_category( array(‘News’,’Features’,’Tech’), $this->post->ID ); $hb2 = in_category( array(‘Research’), $this->post->ID ); $hb3 = has_tag( array( ‘aged care’, ‘anxiety/stress’, ‘autism’, ‘cognitive’, ‘Dementia’, “Parkinson’s”, ‘sleep’ , ‘well-being’ ), $this->post->ID ); if ( $hb1 ) { the_field(‘media_outlet’, … Read more

How to get taxonomy image attached to a Post Type WordPress

use this snippet here i get image which have post id 5 <img src=”https://wordpress.stackexchange.com/questions/344213/<?php echo site_url(); ?>/wp-content/uploads/<?php echo get_post_meta(5,”_wp_attached_file’,true); ?>’ height=”100″ width=”100″> check get_ani_taxonomy_fields($ani->term_id, ‘acf_image_field_name’) this function return post id