Questions tagged [advanced-custom-fields]

Advanced Custom Fields is a free WordPress plugin which acts as a GUI layer for custom fields. Custom fields are native to WP and appear on pages, posts and custom post types, however the native custom field interface is not very user friendly. ACF uses field groups to attach fields to edit screens.

Advanced Custom Fields is a free WordPress plugin which acts as a GUI layer for custom fields. Custom fields are native to WP and appear on pages, posts and custom post types, however, the native custom field interface is not very user-friendly. ACF uses field groups to attach fields to edit screens.

More information and good documentation are available on the official website. The plugin can be downloaded from the WordPress plugin repository or installed from within the WordPress admin.

Useful Links

4522 questions
6
votes
1 answer

ACF object in wordpress menu-walker

I have a WP-site, and I want a sub-menu for each menu-items, with a li-item for each the_sub_field('info_block_header'). So I'm trying to create a walker with a ACF-loop inside, however I don't now how to implement the loop correctly. This is what I…
Carl Papworth
  • 1,282
  • 2
  • 16
  • 35
6
votes
2 answers

ACF - Options page Hook (Wordpress)

I am really making a huge use of ACF's options pages and repeater fields. In order to reduce the amount of queries (from about 500 to 80) I'm caching some field outputs with the help of Wordpress Transient API. I know the hook for ACF options pages…
cruzquer
  • 301
  • 1
  • 3
  • 11
6
votes
1 answer

Insert multiple static values for multiple variable IDs

Some back story (not directly relevant to my question, but maybe someone else can use my method) I'm working in WordPress v3.9.1 using the plugin Advanced Custom Fields. I've imported a CSV file of custom values (using WP Ultimate CSV Importer…
DACrosby
  • 11,116
  • 3
  • 39
  • 51
6
votes
4 answers

How to pull ACF values into a custom post type archive

So my issue is that I just created a custom post type and have created a couple of posts to go along with this. I am using ACF fields in the template single-post_type.php That I created. These show up fine on the individual posts, but I need some of…
ankreye
  • 61
  • 1
  • 1
  • 4
5
votes
1 answer

PHP echo not outputting html tags

I'm trying to output content from an Advanced Custom Fields (ACF) in my wordpress theme. At the moment though, all I'm getting is the plain text content from the ACF inside double quotation marks, not inside the div and h1 tags. The code is copied…
Jono
  • 53
  • 5
5
votes
1 answer

How to enable duplicate functionality on ACF Repeater

I'm using ACF for building custom Wordpress configuration options (inside custom options pages, settings, CPTs, Gutenberg blocks etc), for more than 5 years. I know there's an option in repeater fields to duplicate rows, but how can I enable it? All…
RBFraphael
  • 367
  • 1
  • 3
  • 13
5
votes
3 answers

Advanced Custom Fields ( ACF ) on WooCommerce Checkout

I am using the ACF plugin to manage a variety of custom meta data within a WooCommerce website. One of the features I'm trying to get set is to add custom fields to the WooCommerce checkout page. I am following the general concept outlined on WC's…
5
votes
1 answer

Add filter to acf relationship field

I am using wordpress 4.9.7 and I am using advanced custom fields 4.4.12. In my backend I have a post type that is called coins, which has a relationship field called related_coins and a text-field, which is called algorithm. Basically my…
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
5
votes
1 answer

Advanced Custom Fields Hidden Field

I am utilizing ACF within a Wordpress site to configure some options for a custom post type, and using the ACF Unique ID plugin to generate a field that builds a unique ID for the field. It's configuration is extremely basic: class…
Scott Salyer
  • 2,165
  • 7
  • 45
  • 82
5
votes
2 answers

List available ACF Flexible Layout options

I'm working on creating a settings system for a Wordpress installation, where super admins can disable some ACF Flexible Content layouts if they are not needed for the current website, without modifying the structure of the plugin. I'm looking for a…
Andy Holmes
  • 7,817
  • 10
  • 50
  • 83
5
votes
1 answer

Passing ID to Translated Post in save_post

I have a method connected to save_post action, WPML is being used as a translation plugin, I am trying to find a way that once a translation is added, and published is clicked and save_post method is triggered to know the ID of the original Post. So…
5
votes
2 answers

Custom Fields not showing in custom post type post

I have a custom post type named "Designer" Each posts will be using different unique Advanced Custom Fields as each posts has unique templates.With the below code I am able to give rules for each posts in Designer post type and save but the custom…
Vinit Sinkar
  • 99
  • 2
  • 10
5
votes
5 answers

Default values for existing posts

I have created a new area on a site using Advanced Custom Fields. The area displays on the new posts and modified posts but not on the old posts. What can be done to show it on all posts with minimum effort? In a 2013 post I saw there was no…
user379888
5
votes
3 answers

How to set custom post type field as post title to avoid 'Auto Draft'

I am using the Advanced custom fields plugin and Custom post type UI to give my users some extra functionality. The problem I have is that I have setup a users information menu and in the list view all new posts appear as Auto Draft. Is there anyway…
Dinesh
  • 197
  • 1
  • 12
5
votes
1 answer

Advanced Custom Fields to WooCommerce API

I'm using WooCommerce and Advanced Custom Fields on my WordPress website. I want to add Advanced Custom Fields to WooCommerce API to get custom field value for each product. How can I do it ? Thanks
user1269586
  • 372
  • 1
  • 6
  • 27