When I add an ACF column to users, the number of posts they have written disappears.
Without ACF column: https://pasteboard.co/cn74pYDNlBdI.png, with ACF column: https://pasteboard.co/MZpu6PQIVj0b.png
]]>Hi, is it possible to sort by radio button field? In “acf/admin_columns/sortable_columns”, it says that every column is sortable by default, but I don’t have this option. https://pasteboard.co/7b8i1AmpTWpD.png
]]>As in the title, while the Custom Columns are displaying well on the initial page view, as soon as the row is Quick Edited -> Update, the columns are gone from the response.
]]>Hi, tolles Plugin. Vielleicht habe ich es übersehen aber gibt es eine M?glichkeit, dass ich die ausgew?hlten Admin Columns auch filtern kann? Die Sortierung ist schon gut aber für den Workflow w?re eine zus?tzliche Filterm?glichkeit sehr hilfreich.
Danke
]]>I am trying to display ACF values as admin columns in the users list, but nothing is displayed. Does this plugin only support pages and posts archives?
]]>Hi,
I just tried your plugin and looks great but I’m using Relationship fields to link “Questions” and “Options” post types and by default it’s only showing the first option and then “and X more” label.
I checked the different filters displayed on your plugin’s page description and didn’t find something related to that.
Maybe I misread it, but would you have a solution in order to display all values instead of only the first ?
Thanks in advance and have a great day,
Simon
I’m trying to use your example filter to adjust the output of an ACF date field. But it’s having no effect:
function my_column_value($rendered_output, $field_properties, $field_value, $post_id) {
if ($field_properties['name'] == 'date') {
$field_value = DateTime::createFromFormat('Ymd', $field_value);
return $field_value->format('Y-m-d');
}
return $rendered_output;
}
add_filter('acf/admin_columns/column/render_output','my_column_value', 10, 4);
The ACF field name is “date” and the value is saved in Ymd format. I want to change it to Y-m-d when displayed in the admin column. Nothing is happening.
I tested simplifying the return in case my date function was wrong, but this still had no effect:
function my_column_value($rendered_output, $field_properties, $field_value, $post_id) {
if ($field_properties['name'] == 'date') {
return 'test';
}
return $rendered_output;
}
add_filter('acf/admin_columns/column/render_output','my_column_value', 10, 4);
What am I doing wrong?
]]>hi
enabel show users meta for show in clumns
but not show
tnx
]]>I’m getting this error:
Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 20480 bytes) in /www/wp-content/plugins/admin-columns-for-acf-fields/acf_admin_columns.php on line 118 Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 20480 bytes) in /wordpress/wp-includes/class-wp-fatal-error-handler.php on line 76
Can you advice? Thanks.
]]>Just a suggestion, not a bug or error.
I think thats it. Thank you for the plugin.
]]>Hello,
We had to disable the plugin, getting the following errors:
WordPress version 6.3.2
Active theme: Divi Child (version 0.1.1)
Current plugin: Admin Columns for ACF Fields (version 0.2.0)
PHP version 8.2.11
Error Details
=============
An error of type E_ERROR was caused in line 477 of the file /nas/content/live/madebaltimore/wp-content/plugins/admin-columns-for-acf-fields/acf_admin_columns.php. Error message: Uncaught TypeError: Illegal offset type in isset or empty in /nas/content/live/madebaltimore/wp-content/plugins/admin-columns-for-acf-fields/acf_admin_columns.php:477
Stack trace:
#0 /nas/content/live/madebaltimore/wp-content/plugins/admin-columns-for-acf-fields/acf_admin_columns.php(274): FleiACFAdminColumns->render_column_field(Array)
#1 /nas/content/live/madebaltimore/wp-includes/class-wp-hook.php(310): FleiACFAdminColumns->filter_manage_custom_column('acf_member_busi...', 27242)
#2 /nas/content/live/madebaltimore/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#3 /nas/content/live/madebaltimore/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /nas/content/live/madebaltimore/wp-admin/includes/class-wp-posts-list-table.php(1387): do_action('manage_member_p...', 'acf_member_busi...', 27242)
#5 /nas/content/live/madebaltimore/wp-admin/includes/class-wp-list-table.php(1766): WP_Posts_List_Table->column_default(Object(WP_Post), 'acf_member_busi...')
#6 /nas/content/live/madebaltimore/wp-admin/includes/class-wp-posts-list-table.php(1421): WP_List_Table->single_row_columns(Object(WP_Post))
#7 /nas/content/live/madebaltimore/wp-admin/includes/class-wp-posts-list-table.php(829): WP_Posts_List_Table->single_row(Object(WP_Post), 0)
#8 /nas/content/live/madebaltimore/wp-admin/includes/class-wp-posts-list-table.php(805): WP_Posts_List_Table->_display_rows(Array, 0)
#9 /nas/content/live/madebaltimore/wp-admin/includes/class-wp-list-table.php(1676): WP_Posts_List_Table->display_rows()
#10 /nas/content/live/madebaltimore/wp-admin/includes/class-wp-list-table.php(1603): WP_List_Table->display_rows_or_placeholder()
#11 /nas/content/live/madebaltimore/wp-admin/edit.php(495): WP_List_Table->display()
#12 {main}
thrown
]]>
Is this plugin abandoned? After upgrading to PHP8 I keep getting an Uncaught TypeError: Illegal offset type in /var/www/1/72876/www/wp-content/plugins/admin-columns-for-acf-fields/acf_admin_columns.php:170
This is line 170 and onwards:
if (array_key_exists($orderby, $this->admin_columns)) {
// this makes sure we sort also when the custom field has never been set on some posts before
$meta_query = array(
'relation' => 'OR',
array('key' => $this->get_clean_column($orderby), 'compare' => 'NOT EXISTS'), // 'NOT EXISTS' needs to go first for proper sorting
array('key' => $this->get_clean_column($orderby), 'compare' => 'EXISTS'),
);
$query->set('meta_query', $meta_query);
$query->set('orderby', 'meta_value');
}
Is there a fix to this issue. Are there any alternative plugins if this is abandoned?
]]>Thanks for this great little plugin, very handy.
It would be a very great if we could manage the order of the columns. Adding a number to manage the order/priority would be enough!
]]>Hi,
My ACF fields are showing after the Publish Date column. Is it possible to show the fields before that column? Or can I arrange the order of the ACF columns if there are multiple fields?
Thanks
]]>On the latest version (5.9) I’m experiencing an unknown issue preventing the Posts and Pages screens from loading. Disabling this plugin resolves the issue (tested on two environments using different themes).
]]>Hi, I just installed this plugin and it’s working great for my regular/custom posts. I’d love it if it would work for the users list too, though, as I have some custom fields there (including a custom image field I use as avatars) that’d be great to view in the user list, but it doesn’t seem to be an option at the moment.
I also had a question: For one of my custom post types I have an image column. However, I seem to be unable to change the size of the image in the column. Right now, it uses a small thumbnail file of around 60×100 and displays it at nearly 400×600 pixels, which is both impractical and unappealing. Am I overlooking an option somewhere?
Thank you very much!
]]>Sorry. Fixed
]]>Hi,
The ACF field group in question has Location rule “page template” is equal to “solutions”. I have ticked “page” in Admin Column Post Types. but the field is not shown in all pages view. WordPress version is 5.4.2. Any help would be appreciated.
]]>When I use filter, like date or some custom, it doesnt work….
]]>I wanna ask, if there a way to customize output html for some columns?
I want instead of value show an line actions with ajax update functionality.
May be some hook?
Hello,
I was trying to filter post items by column, that uses a numeric ACF field and found a bug. Filtering by numeric field caused 10 appearing before 2, 31 before 4 etc.
I’ve made a change in acf_admin_columns.php
when setting:
$query->set('orderby', 'meta_value');
to:
if($query->query['orderby'] == 'acf_nights_hidden') {
$query->set('orderby', 'meta_value_num');
} else {
$query->set('orderby', 'meta_value');
}
where nights_hidden
is my acf numeric field name. It helps in my case but I think it could be great if you can fix it generally :).
Best,
Sebastian.
Hi
Surely there should be an option to show a field within a group?
These are specific fields, that don’t repeat. They’re just ‘grouped’ together.
Would it be possible to show a value in a grouped field?
In my use case I have a group called ‘Keyword Checks’ and I have 5 radio toggle fields (YES/NO) and would love to be able to see which keyword checks have and have not been done for the pages!
]]>Hi. I have an existing custom field. Does this plugin integrate with that field? I don’t see an option. ACF v5.8.12 WP v5.4.2
Thanks!
Justin
Hi Florian,
I’ve just install your plugin, thanks for your job.
When the ACF field type is image there is a warning from acf_admin_columns.php at line 359.
Warning: count(): Parameter must be an array or an object that implements Countable in \wp-content\plugins\admin-columns-for-acf-fields\acf_admin_columns.php on line 359.
It is because you chain image and gallery type.
To fix it, I’ve just add a test before :
if (is_array($field_value)) $items_more = count($field_value) – 1;
Maybe it can be add in the next version.
Best regards
]]>When you have a taxonomy with a term object type as return, the plugins fails:
[STDERR] PHP Fatal error: Uncaught Error: Object of class WP_Term could not be converted to string in [..]
To resolve this, I have replaced
if (is_array($render_output)) {
$render_output = implode(', ', $render_output);
}
with the following. Would be wonderful if this could be included in the plugin.
if (is_array($render_output)) {
$render_output_array = $render_output;
global $render_output;
$render_output = '';
array_walk($render_output_array, function($value, $key){
global $render_output;
if(is_object($value))
{
$render_output .= (!empty($render_output) ? ', ' : '') . $value->name;
}
else
{
$render_output .= (!empty($render_output)? ', ' : '') . $value;
}
});
}
]]>
Once you enable the Admin Column on a particular ACF field, you then have to select which post types you want this column to appear on. This seems unnecessary to me. I already set where I want the ACF field group to appear via the location rules, why do I have to choose where the admin column should appear? Shouldn’t the admin column just show where ever I set the ACF field group to appear?
]]>It would be nice if we could define an order we want the columns to appear in. For example, currently, all the ACF admin columns appear after the built-in Date column. Could we choose to have one or more ACF admin column appear before this column? Or any other column?
]]>Hello again,
Plugin seems to break Customize menu with the following error message :
Call to undefined function get_current_screen() in […] acf_admin_columns.php:478
Adding the following at the top of acf_admin_columns.php seems to solve the problem :
require_once(ABSPATH . ‘wp-admin/includes/screen.php’);
See :
https://www.ads-software.com/support/topic/call-to-undefined-function-get_current_screen-5/
Hello,
When I use a Number field and its value is zero, the corresponding column is empty in the admin columns. I think it may be related to how PHP handles “0” values.
Thanks.
]]>Hi there,
How can one search the acf columns? Is there a hook or some code snippet that can be added?
]]>