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
4
votes
1 answer

How to add custom filters on graphql-wp advanced custom fields

I am trying to add a new filter for a custom field defined with the Advanced Custom Fields plugin. I want to filter on the age of artists, I looked up some documentation but got confused in the progress. (I am a wordpress newbie) I have added the…
4
votes
2 answers

Can I export an elementor template to html?

I've got a page template that I've built using elementor on wordpress. I need to add a handful of custom fields and not only do I have to upgrade to do this (really can't be bothered messing around with the licences between the dev & live sites) it…
4
votes
1 answer

How to add multiple submit buttons in ACF form?

I'm using ACF Form in Front-end of a WordPress website. It is used to create a custom posts in WordPress. I need to add two submit buttons in this ACF Form. when i click the first button, it should create a new post and post status should be…
karthik_krish
  • 93
  • 1
  • 7
4
votes
2 answers

Wordpress - Retrieve all Posts by 'post_type' then filter by taxonomy

I have a Wordpress installation with ACF (Advanced Custom Fields) installed. I created the Class post type and each Class has it's on Location value. How can I retrieve every Class and get the location I have chosen for that Class? I'm currently…
RichardManson
  • 167
  • 1
  • 1
  • 10
4
votes
1 answer

Display advanced custom fields value in Woocommerce order details and all emails

I created an advanced custom field with the ACF plugin to add additional information on the Woocommerce product edit page. It's a subtitle that differentiates t-shirt templates. I was able to make the value appear on the product page front-end, but…
4
votes
1 answer

How is ACF Blocks data stored in the database

I just want to know how the data from Advanced Custom Field blocks is stored in the Wordpress database? As I understand it, the way that Gutenberg works, is that on document save, all data from all blocks is concatenaded in to one chunk of code, and…
4
votes
1 answer

How to update the clone fields which is inside the repeater field in ACF?

I have a field group named 'Sales Item' and 'Invoice'. The invoice field group have a 'Items' field which is a repeater field, the 'Items' field contains the 'Sales Item' field group as clone field. I need to create an Invoice post type…
Sagar Bahadur Tamang
  • 2,670
  • 2
  • 24
  • 41
4
votes
1 answer

How to access advanced custom field values within a gutenberg block?

I have a custom post type with a few advanced custom fields. I'm trying to access these custom field values from within a Gutenberg block. I've added the following to my register_post_type function 'show_in_rest' => true, 'supports' =>…
4
votes
1 answer

How to add custom fields in ACF programmatically?

I want to programmatically add a tab with repeater inside but I can't seem to find a solution, I've googled all available resources but still not working. I already tried using acf_add_local_field_group and acf_add_local_field but still no luck.…
leonardeveloper
  • 1,813
  • 1
  • 34
  • 58
4
votes
1 answer

use add_row to programmatically add an entry to a flexible content field in advanced custom fields for wordpress

Wondering how to use add_rows (or something similar) to add an entry to a flexible content field programmatically. On ACF's website they mention add_rows can be used to add a row to a flexible content field…
hot_barbara
  • 522
  • 1
  • 8
  • 19
4
votes
4 answers

Repeater inside Group ACF Wordpress

I'm using Advanced Custom Fields for Wordpress and trying to loop a repeater inside a group. All I get is "Notice: Array to string conversion in..." What's wrong & how do I fix it?
4
votes
2 answers

ACF Group field not displaying on the front end

I have created a group field in ACF to display on posts, pages and custom post type. Please see below screenshots. And here's the code I'm trying for front-end. The code…
shutupchigo
  • 703
  • 1
  • 7
  • 19
4
votes
1 answer

Using WPBakery ( Visual Composer) and Advanced Custom fields, I want to create or use an object that displays custom images

I'm currently working on a Wordpress website using the Advanced custom fields and WPBakery aka visual composer plugins. While I manage to use these two plugins to post custom text, I have problems with images. What I have tried so far is: use acf…
charelf
  • 3,103
  • 4
  • 29
  • 51
4
votes
0 answers

Wordpress, ACF - get_field_object() doesn't work inside columns when custom filter applied

I’m trying to get a fields value and label inside a row in a custom column. Everything works fine when no filters are applied, but when I apply the filter nothing is showing up and I don’t know why. I've tried using field name and field key,…
dodo254
  • 519
  • 2
  • 7
  • 16
4
votes
2 answers

How to show custom fields in divi blog module?

Theme: Divi Plugin for custom fields in post: ACF - Advanced Custom Fields Using the Divi Blog module in Grid mode, I want to show a custom field (registered using the ACF plugin) alongside the post title, author, excerpt, post date, etc. See the…