As Sally CJ suggest in comments, the error come from the terms with artist_avatar
empty. So, check if is_array()
before access the array, fix it:
add_filter('manage_artist_custom_column', function ($content,$column_name,$term_id){
$term = get_term($term_id, 'artist');
$avatar = get_field('artist_avatar', $term);
switch ($column_name) {
case 'artist_avatar':
if ( is_array( $avatar ) ) {
$content = $avatar["url"];
} else {
$content = __('This artist has no picture', 'sage');
}
break;
default:
break;
}
return $content;
},10,3);
Related Posts:
- Adding Category/Tag/Taxonomy Support to Images/Media
- Custom columns on edit-tags.php main page
- Custom taxonomy – custom sortable column
- WP_insert_term how to insert multiple values as taxonomny term?
- Outputting an array of term meta values in a custom WooCommerce tab?
- Echo specific term in an array
- How can I add buttons to a custom column in the taxonomy table?
- Make a taxonomy column sortable in the admin?
- Remove custom taxonomy column from my custom post type columns
- Query posts using custom taxonomy and selected terms
- Proper way to create taxonomy queries
- Custom column into custom taxonomy (img tag with slug-name as file name)
- Tax query array terms display out of order
- Order posts with custom taxonomy array
- Trying to achieve row posts below category with multiple loops in custom tax
- Create heirachy of post terms from array & assign post to terms
- Remove taxonomy base or term from url
- Bulk term assignment for attachment taxonomies
- Taxonomy slug by term ID
- How to enable hierarchical permalinks for hierarchical taxonomies
- Create taxonomy with meta term using the WP Rest Api
- Best practices for complex taxonomies
- wp_get_object_terms – How can I order the resulting array by hierarchy?
- Remove description in custom taxonomy edit screen
- How to output the taxonomy term name in a widget
- Make Custom Taxonomy Category Use Parent Template
- custom post type category page
- Advanced custom fields – taxonomy terms images [closed]
- How to call custom taxonomy categories with shortcodes
- How to get terms of a custom post type in a loop inside footer.php
- Is It Possible To Have Shared WordPress Custom Post Types?
- How do I make a custom taxomony appear like tags?
- How can I conditionally change the title of a taxonomy meta box?
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- meta_key & meta_value not working with get_pages and custom taxonomy
- showing custom taxonomies w/custom post type
- Display sub categories and their data of a taxonomy
- Exclude Taxonomy Terms from Template Via Back End?
- Add multiple taxonomy filters to edit.php that support search
- Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?
- Set taxonomy fields on post with AJAX
- A way to query custom taxonomies by name
- Custom Taxonomy index/archive hierarchy
- Show related posts that match two categories
- Failure to add term meta
- Hierarchical Taxonomy Terms Select Menu Output with selected=”selected” Set
- Sorting Custom Posts on Archive page with pagination
- Removing “s” from search with custom parameters
- get_term_children returns unknown int though term has no child
- Search Query for Multiple Terms In Same Taxonomy
- Custom taxonomy pagination
- Custom taxonomy not showing terms in post area
- How to Modify Default Text in a Custom Taxonomy Admin Panel?
- Problem with wordpress pagination
- Why isn’t the ‘no results’ being shown when a query returns no results?
- How to get_the_term_list() from multiple taxonomies?
- link directly to custom post if there is only one in the taxonomy
- Add a term to list in block editor taxonomy sidebar
- Show only the sub-categories (and their content) of the current custom taxonomy with ‘taxonomy.php’
- How to get custom post type categories in an array
- WordPress modify Settings > Permalinks (options-permalink.php) Add CPT Permalink Options
- How do I make multiple dependent input fields that use the jquery autocomplete function?
- Also show terms that are related to draft and pending posts
- Breaking Bootstrap Grid at Post Count with Tax Terms
- Displaying Posts Attached to Custom Taxonomy Terms
- Update Post Taxonomy Automatically Based On Date
- Custom taxonomy page not working
- What is the best way to change sidebars based on custom taxonomy terms?
- Displaying the post count of all custom taxonomy terms in a list format
- Automatically tag posts based on user-defined words [closed]
- How to update post taxonomies (Creating a custom UI for Custom Taxonomy)
- Taxonomy dropdown metabox in the back-end
- Taxonomy archive uses incorrect template when query strings are used
- wordpress mysql / wpdb ajax load more for terms help
- Get child product categories from parent product category for CUSTOM TAXONOMY archive page
- How to get related taxonomies based on a category with mysql query?
- Custom archive page for custom taxonomy and pagination issue
- Updating a custom post type’s custom taxonomy in a custom editor block
- how to show product custom taxonomies in woocommerce rest api
- Auto add custom taxonomy to permalink when save
- Custom taxonomy – no posts found
- WP Tax query & order by tax query not working
- Show latest used taxonomy in homepage
- Link a page from admin to a custom taxonomy
- What’s the url queryvar for a taxnomy archive?
- Custom button on custom taxonomy listing page
- Custom Taxonomy Archives Page Errors
- Permalink Rewrite to include Custom Taxonomy Term
- Where is defined a custom register_taxonomy? [closed]
- Differentiate Parent & Child of Custom Taxonomy
- Listing all selected terms for custom taxonomies on a post
- Multiple Taxonomy in URL/Query – No Custom Post Type
- Calling Custom Taxonomy Dropdown in Form
- Displaying Custom Taxonomy List Posts By Slug?
- Show different sidebar on taxonomy pages when a default is set
- How can I get parent term from a child term
- Custom Taxonomy – Archive for the whole Custom Taxonomy (and not just single term)?
- ACF Display Taxonomy Image Field
- Guest author – URL, base and custom taxonomy – working but unstable
- Gravity Forms with Advanced Post Creation Add-On not updating ACF fields on custom taxonomy