Plugin / Admin Columns for ACF Fields

Florian Eickhorst

Description

Description

Use this plugin to show ACF fields in the “All Posts” table view in the WordPress admin backend.

Simply enable the new option “Admin Column” in your ACF field settings for any regular field (see exceptions below). Now there will be an extra column for your field shown in any overview of posts, pages, taxonomies or your custom post types or taxonomies (e.g. “All Pages”).

You can use filters (see below) to control the plugin’s behaviour even more precisely.

Works on any regular ACF field (see exceptions below).

Compatible with Advanced Custom Fields 5.x

Github: https://www.github.com/fleiflei/

Usage:

  1. Install ACF and this plugin (see below)
  2. In ACF open/create your “field group” within ACF and note the post type that this field group applies to (at the bottom).
  3. Open any field for editing (see exceptions below).
  4. Enable the “Admin Column” option in the field settings.
  5. Enable post types and/or taxonomies for which the column should be shown.
  6. Save the field group and go to the overview page of the post type or taxonomy (e.g. “Posts > All Posts”, or “Pages > All Pages”) that you noted above and notice the newly added column for your field.

Advanced Usage

Excluded ACF Fields

Due to their nature the option “Admin Column” is not shown in ACF for these fields:

  • Accordion
  • Clone
  • Flexible Content
  • Google Map
  • Group
  • Message
  • Repeater
  • Tab

Change how the returned column value is displayed

Use filter “acf/admin_columns/$field_name” to alter the value that is returned

Filters

acf/admin_columns/admin_columns

Allows you to change which columns are displayed on the current admin screen.

Parameters

$fields – Array of all ACF fields to be shown in current screen.

acf/admin_columns/sortable_columns

Change which columns should be sortable. By default every column is sortable.

Parameters

$columns – Array of all ACF fields to be shown in current screen.

acf/admin_columns/column/$field

Allows you to modify the output of a certain $field in every row of a posts table.

Parameters

$field_value – The field value

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.