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
- fetch from an external api call and display results in page
- 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
- Same Custom Post Type Slug and Custom Taxonomy Slug, with hierarchial unique permalink structure
- WordPress CPT & Custom Taxonomy with the SAME Permalink Structure
- Remove slug and custom post type name from URL
- Hot to show custom post type taxonomies on archive page
- Want to add custom post type for facebook feed
- How to get the post title inside a custom block in a loop? block.js
- Allow HTML in custom taxonomy description, and show it on front end
- Inject post (from specific category) between posts in Loop
- Installing wp3.2.1 on IIS; getting empty sessions
- Categories under custom post types doesn’t show properly
- Want to separate sections of posts. Can you restart loop?
- Specific Loop For 2 Within Each
- Get_post_meta() won’t return value
- Removing WordPress profile fields from non-admins
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Show custom field if it exists, and show different elements if it doesn’t
- How can I add pagination and how can I change thumbnail size?
- Custom field value not saving when it contains a URL?
- WP_Query orderby modified to include custom meta changes
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- List custom taxonomy specific to one custom post type
- Show css depending on activity type in BuddyPress activity-loop [closed]
- Need Help Fixing My Iframes [closed]
- Is it possible to retrieve all posts with a certain value for metadata?
- How to avoid duplicates when creating recent network posts
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- How to wrap every 3 posts in a div (and close the last div too) [closed]
- Dividing the loop to style post differently
- Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]
- Using page title as a link to term archive
- Custom Taxonomy dont save in a frontend form for post a custom post
- Should i use custom post type for a custom footer?
- Problem in replacing the_content with the_excerpt()
- How to change the author box selection on a post to a custom taxonomy
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Delete images from media library when user deletes an image from ACF Gallery
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Display all categories including sub categories under a list ul
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- PHP Warning with Custom Fields
- How fix error in the WordPress loop?
- Efficient way of querying for a “fallback” post?
- Create a hierarchical loop at predefined markup requirements
- Function not pulling image or text from custom post type
- Sorting Meta Fields?
- Sorting custom post types by taxonomy (So close)
- Custom Post type as Taxonomy
- Custom CPT – Programmatically create categories to assign CPT when a new one is created