Since you get the values from a taxonomy you should include the term object in the get_field()
get_field('favicon',$category);
Here is the guide from ACF:
https://www.advancedcustomfields.com/resources/adding-fields-taxonomy-term/
Related Posts:
- Order by custom field attribute
- How to loop over custom fields in a page template?
- Print html when custom field has value inside while loop
- How to add custom taxonomy slug in CPT permalink?
- Show Custom Taxonomy Title
- wp_query to find posts by year and month
- Create a random unique 6 digit number as custom field for custom post type
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Sum custom field values of particular taxonomy
- Why my filterable portfolio page work not perfectly between slug button and slug output WORDRPESS?
- How can I add extra word in permalink when someone click download button?
- Custom field values to taxonomy terms
- Control content before and after custom post type loop
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- Get data from PHP to JavaScript to set position of each post on front page
- WordPress loop by meta key that is an array? and how loop multiple arrays
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- How to break up php code to avoid echo
- WordPress: Displaying all the post tags from within a specific taxonomy’s term
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- How do I ensure that post_type and Taxonomy use the same slug?
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Products listing check if meta checkbox is checked
- when looping through custom post data not appearing
- Where does php code to load data go?
- ACF – Can’t get custom post type by taxonomy
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- Combine multiple separate lists into one
- Adding a Section for Visitors
- Show parent category and subcategory once in while loop
- Custom taxonomy template for custom fields loop [closed]
- Add active class to foundation 6 tabs while looping categories
- WordPress loop add heading before first of type
- How to make a shortcode for my WP_Query Loop? [duplicate]
- WordPress query posts by custom post type not workng
- enumerating custom taxonomies?
- Custom Taxonomy Link Text Echo Name Not Slug
- divide custom field values in div every two values
- Show Custom Post Type taxonomy term that matches custom field
- WordPress Custom Post Type and sort by Tags
- How can I put a custom field as the link of a button shortcode?
- Looping taxonomy in taxonomy?
- How do I filter a custom post type loop by a field?
- Displaying custom meta box value in a custom post page
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- WordPress different custom tag being displayed in on tag list
- Get category name of current post (CPT UI)
- How do I organize posts based on their taxonomy?
- How to make multiple custom taxonomies sit under custom post type slug?
- How do I exclude the current post from the upcoming post query
- How to Add Custom Fields to a Custom Post Type?
- Custom Taxonomy Template Post List with Sort Order
- How to paginate a list of custom taxonomy terms?
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- How to get only one category of custom post type?
- Append taxonomy terms as class names in markup?
- Display custom field of specific post where post title matches variable
- Normal pages as children of my Custom Post Type
- Query all posts of a custom taxonomy term
- Loop with slider (slider not loading)
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Displaying Woocommerce Product Category in WordPress
- Woocommerce : Can’t get product info in loop
- Display Custom Taxonomy Alphabetically
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Displaying custom field according to date
- Add additional field to custom post_type
- Copy taxonomy terms from one post to another programmatically
- looping though custom post types and only return results in a given taxonomy
- How to conditionally add Custom Post Type to Front Page
- Php code error in wordpress if else statements [closed]
- How can i loop through custom post type according to custom meta field?
- Display additional user fields
- How to update posts’ custom taxonomy selection?
- Trying to update Woocommerce meta values
- How to Call on WordPress Custom Fields without a Plugin
- Assigning categories to custom post types via a front-end form; only works for native post type
- Save custom field on WP_List_Table
- Custom Post Type has wrong label and is not found when called by a loop
- adding or removing endforeach; throws error!
- custom fields anchor points php
- How to insert text into post based on category – via single.php file
- Filter loop by ‘price’ with meta_query
- Updating Lat and Lng of posts automatically gives sporadic results
- Problems with the WordPress loop [closed]
- str_replace not preserving whitespace
- WordPress while loop with aphabetic counting like one, two, three
- Add post class in custom loop (WP_QUERY)
- Custom post type with custom taxonomy permalinks
- How to get past and upcoming post by defining date in custom field?
- Get category id for a custom category and display it in a class
- Automatically create a loop for post ID
- why is this content-template not showing any of my blog-entries?
- Trying to display ads on only a third of posts in a loop. Keep getting Error 500?
- How to use custom fields to replace top-level parent title with an image using wp_list_pages?
- Query posts by custom fields (object post)
- display custom post type from register taxonomy
- How to change order of custom post types. I want Featured post to come first
- Display terms on product page with shotrcode
- Three different queries on same page