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

Show number of orders by statuses and by custom ACF field in Woocommerce

I'm working on a kind of internal 'plugin' to show how many orders currently I have with a split by statuses and account manager. So I would like to present it as a table like: Account Manager | No of pending orders | No of canceled orders etc I…
7
votes
4 answers

How do you style the admin/backend of the ACF (Advanced Custom Fields) Wordpress plugin?

The ACF backend/admin panel can get very confusing when you have a lot of options. I see where you can change the width percentage and add your own class to the custom fields, but how do you style those classes? Just adding those class names to…
Jesse Phillips
  • 419
  • 1
  • 4
  • 11
7
votes
4 answers

Sync ACF fields across sites on WP multisite

I've been searching for a way to sync ACF fields across sites on a WordPress multi-site. There are 5 sites with individual content but they all use the same ACF fields. I'd rather avoid having to manually create and add these new fields on each…
Staffan Estberg
  • 6,795
  • 16
  • 71
  • 107
7
votes
4 answers

Advanced Custom Fields - Filtering a Post Object Field by previously chosen Taxonomy

I have a custom post type called Event in which I want to add a location chosen from a large list of locations. To make this process easier I want to filter these locations by a category called locality. To achieve this I have created a custom post…
Steve Cortis
  • 522
  • 1
  • 6
  • 25
7
votes
1 answer

Advanced custom fields / populate select based on another acf field

regarding advanced custom fields repeater and select drop downs. i currently have a website which revolves around cars. In an options page in wordpress, i have a repeater block with one text field named 'manufacturer' and another called 'models' as…
7
votes
2 answers

Using Custom Taxonomy Term ID for Custom Field

I have created a custom single-sermons.php template file for my sermons custom post type and want to include the sermon speaker image custom field of the sermon speaker for this post. Custom Taxonomy ID: sermon_speaker Custom Field ID:…
7
votes
2 answers

Wordpress ACF - Date format

I am using the date field to render out the date to look like: 11/15/2014. But I want to also display the date like November 15, 2014 else where on the page. Is it somehow possible to render out the date in two different formats?
Adam
  • 812
  • 3
  • 13
  • 22
7
votes
1 answer

Dynamically populate an ACF field (radio) on a multisite install

I'm trying to populate an Advanced Custom Fields' radio field pulling out the data from a custom post type located in the main blog of a multisite install. For a better understanding I made this simple flow graphic. So I created a function in order…
Jaypee
  • 1,272
  • 5
  • 17
  • 37
6
votes
4 answers

Count the number of relation posts in ACF

I'm working on a website for a band where you can add gigs and add the songs played on that specific gig. So I've created two custom post types: - gig - song I got a custom field "Songs" of type "Relationship". This field is shown on the Custom Post…
6
votes
2 answers

How to Pre Populate a Ninja Form hidden field from an Advanced Custom Field?

I have Ninja Forms and ACF for WordPress installed. I have a hidden field in Ninja Forms and I need to repopulate this with the value from an ACF field. I tried simple jQuery but it doesn't work: $('input[name=nf-field-19]').val('
conradical
  • 95
  • 1
  • 4
6
votes
1 answer

get last row from an ACF flexible content and display it on another page

I made two pages, a front page and an "basic content page". On this "basic content page", I made a flexible content with different text and images. I search for a way to display the last row on the front page, is it possible ? UPDATE : Here is the…
Yagayente
  • 341
  • 2
  • 19
6
votes
2 answers

how to decide p of ACF and q of PACF in AR, MA, ARMA and ARIMA?

I am confused about how to calculate p of ACF and q of PACF in AR, MA, ARMA and ARIMA. For example, in R, we use acf or pacf to get the best p and q. However, based on the information I have read, p is the order of AR and q is the order of MA. Let's…
Feng Chen
  • 2,139
  • 4
  • 33
  • 62
6
votes
2 answers

Add ACF fields to search results page WordPress

I have a file named search.php, where all the search results are added. The search form is located on the homepage. The problem is, I have no special page for the search results, but I want to add ACF fields to this page. I have searched in the…
Maarten Wolfsen
  • 1,625
  • 3
  • 19
  • 35
6
votes
1 answer

How to sanitize $_POST for wordpress WP_QUERY?

Anyone know how to sanitize the $_POST for wordpress? Or is it already sanitized when i used the WP_QUERY? thanks! I was thinking whether i use mysql_escape() or esc_sql() [wordpress function]. function checkIfEmailAndPasswordHaveUser( $email,…
Raymond Seger
  • 1,080
  • 5
  • 17
  • 34
6
votes
1 answer

how to save acf_form using ajax without page refresh

I have theese three acf_form. I want to show these form one by one as well as I want to save every form on button click through ajax without page refresh. Right now it's refreshing page whenever I update. I will show through display none & block…
Mukesh Prajapat
  • 274
  • 2
  • 13