How to read taxonomy in loop?

I got it working here is the code: … <?php $term = get_term_by(‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ), get_queried_object()->term_id ); // $paged = ( get_query_var( ‘paged’ ) ) ? get_query_var( ‘paged’ ) : 1; $query = new WP_Query(array( ‘post_type’ => ‘recipe’, ‘meta_key’ => ‘recipe_star_rating’, ‘orderby’ => ‘meta_value_num’, ‘order’ => ‘DESC’, // ‘paged’ => $paged, … Read more

Updating Post meta (ACF field) from Feed

Realized that I did not need to make this into a function, and inside the template_part the update_field(‘ceg_valtozas’, $formatted_json[‘change_percent’]); did actually work, so some part of the code must have been undefined.