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
1
vote
0 answers

Query posts based on post object - advance custom fields

So i have a custom post type called theprojects which have a repeater field (post_object) base on another custom post type 'people' (each post have a person and is details (photo,bio, etc..). Everything it´s ok. In each project i can had one or more…
Luís P. A.
  • 9,524
  • 2
  • 23
  • 36
1
vote
0 answers

ACF repeater values not saving before Custom Post Type is created by Gravity Forms

I'm using the Gravity Forms + Custom Post Type plugin plus ACF to collect information and automatically generate a post from it. The user is automatically shown the newly generated post via a redirect confirmation. The form has a list type in GF…
1
vote
1 answer

adf test and acf plot on multiple columns

I am trying to apply adf.test to all columns of a dataframe. Some columns have NA values. I would like to store the output in a vector/list/dataframe. H<-data.frame(replicate(10,sample(0:20,10,rep=TRUE)))…
oivemaria
  • 453
  • 4
  • 20
1
vote
1 answer

Wordpress ACF import by script needs save for Repeater field

I just made a script for importing a JSON feed to ACF custom fields pro. When I insert a field which is just a normal field a 'save' action by click is not needed after import. update_field('rating', $route['rating'], $post_id); Everything goes…
1
vote
2 answers

get field values from query

While using a front end form, could get values from a query? Something like this: http://example.com/form?foo_name=bar, so when you click on the link that will take you to the form, the field called foo_name will be fille by default with the value…
gaby
  • 51
  • 5
1
vote
1 answer

WordPress: Display Posts by Year Set in Advanced Custom Fields

I am trying to organize posts by year, based on what's been entered in the Advanced Custom Fields date picker (not the year published). I've been able to come very close to what I'm looking for using the year checker found on:…
alyssaster
  • 13
  • 5
1
vote
1 answer

ACF CPT two columns with each category

I have created custom post types and added some things through advanced custom fields. Usually when i don't need to select from each category i would do something like this.
1
vote
1 answer

Trying to get image URL from meta data of custom post

I have a WordPress site that has custom posts and I am trying to output the metadata in a feed. The feed will be a json object but the problem that i am having is that for one of the fields for an image url has the value "field_53ecfb598628f". I…
1
vote
1 answer

ACF: Show a list of a subfield and show the corresponding subfield in another div?

Using ACF (Advanced Custom Fields), I set up a field (slides) with two subfields (title) and (slide). In my header.php file, I have this code which outputs a list of the title subfield. // header.php //
1
vote
1 answer

Wordpress featured image with ACF

So, I use Advanced Custom Fields on Wordpress to set an featured image that i host on flickr, this way i can query it perfectly in the template i am building. But this image isn't in the content(text) of the post, so for example Facebook or Twitter…
1
vote
2 answers

Advanced Custom Fields and Google Maps Multiple Markers

I have some code that generates a Google Map to show a marker based on the location field supplied via a custom field named 'event_map'. It works great.
lowercase
  • 1,198
  • 9
  • 34
  • 56
1
vote
0 answers

Date Filter In Wordpress Using Advanced Custom Fields

I'm using the Advanced Custom Fields plugin in Wordpress to gather info on some custom posts types that I'm using to create a list of events. Examples of the ACF fields: "Date of Event," "End Date," and "Hide Date" (as in, the date to hide the…
chuckscoggins
  • 33
  • 2
  • 10
1
vote
1 answer

Save user meta on Woocommerce EU VAT Plugin

I'm making a wordpress woocommerce run website which i'm building to store VAT Numbers, and make it so that a user and admin can edit it when needed. I'm using the official woocommerce eu vat plugin - http://www.woothemes.com/products/eu-vat-number/…
Adam Boustead
  • 143
  • 1
  • 4
  • 12
1
vote
2 answers

ACF IMG returns ID not URL when in archive.php

I have a WordPress site and have a simple div with a background image in footer.php being called from ACF options field like so:
Scott Eldo
  • 473
  • 11
  • 28
1
vote
0 answers

Minimising Database Queries in Wordpress when using Advanced Custom Fields

I'm working on a page which lists staff members for a large company and trying to minimise the number of times I'm forced to query the database as it gets quite complex and slow. 'person' is a custom post type (there are about 300…
mike-source
  • 1,004
  • 3
  • 17
  • 32