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

WP API V2: Query posts by ACF

I would like to query my posts by filtering for a custom meta added with Advanced Custom Fields. It's a boolean meta, so every post will have something like: GET http://localhost/wp-json/wp/v2/posts { ... "acf" : { "highlight" : true } …
LucaP
  • 638
  • 1
  • 12
  • 34
4
votes
1 answer

Wordpress category order by custom field(done). How to output custom field only once

I create a catalog of companies by cities using the Wordpress categories. Categories are cities. Custom field is a region in which cities are included. For custom field used - Advanced Custom Fields For build custom taxanomy order used - WP Term…
4
votes
1 answer

WP API & ACF - Fetch options page

Currently working on an react project together with the WP API & ACF using https://github.com/airesvsg/acf-to-rest-api. Everything worked well, but now i've to fetch the ACF Option Page. Can't see an available endpoint for this, just…
chmtt
  • 437
  • 4
  • 10
4
votes
1 answer

Force Customer to Check Box Acknowledging they Have Read a Document

I have a WooCommerce site that has a couple of products that have been getting a lot of returns due to them ordering the wrong thing. I have added a "Cheat Sheet" that the customer can reference via Advanced Custom Fields. I have written the below…
4
votes
3 answers

WordPress query by ACF relationship field

I have a custom post type "building" and another custom post type "architect". Building are related to architects via an ACF relationship field. In the single-architect page I want to display a list of the buildings that are associated to that…
Guillermo Carone
  • 818
  • 2
  • 9
  • 24
4
votes
2 answers

Display custom product meta in cart with acf repeater fields

I need help please... Here is the code, in single product page, it displays inputs for sizes (in back-end this a multi-select in repeater fields) attached to checkboxes for colors (in back-end this a select in repeater fields), they are called by…
Flo Key
  • 51
  • 6
4
votes
1 answer

ACF Repeater Field | Load More

I am following a Github code to add load more to ACF repeater field. I have 101 fields but load more not working. I tried to bebug too. Ajax response is 0. May be via ajax its not working. Do I have to add anything on functions.php file. Ajax…
Zack
  • 171
  • 2
  • 12
4
votes
3 answers

How to retrieve specific ACF repeater row with matching sub-field value

I've experimented and researched for hours trying to find a way to get this to work, but I'm just not having any luck. So I have a couple different custom post types that need to co-mingle a bit. Let me try and explain it as clear and economically…
4
votes
1 answer

ACF Bidirectional Relationships

How can I get bidirectional relationships with different post types in advanced custom fields ? I use this but it's not working https://www.advancedcustomfields.com/resources/bidirectional-relationships/ I want to get a parent post type 1 where the…
4
votes
1 answer

How to display an acf field from a user profile?

I currently have an advanced custom field setup in the user's profile with a field name of author_title. This would display what the user does at the company blog. I currently have the following working but the title only updates for first user…
M1lls
  • 545
  • 3
  • 11
  • 33
4
votes
3 answers

Display a custom field image on Visual Composer Custom Grid Template

I'm working on a WP site with Visual Composer. In the homepage I've inserted a "Post Grid" element which load a specific custom post type. This custom post has multiple custom fields (made with Advanced Custom Fields Plugin): one of these fields is…
4
votes
5 answers

WP - Advanced Custom Fields : acf_add_options_page() does not exist

I am trying to set up Options Page with Advanced Custom Fields in WP. What I have in functions.php file : if( function_exists('acf_add_options_page') )…
Vladimir
  • 456
  • 1
  • 7
  • 20
4
votes
4 answers

ACF fields value not available until saving post manually

I have some custom post type "video" and I added some custom ACF fields to it ("video_path", "author_name" and "audio_author"). I'm generating posts in that type programmatically like this: $video_post_params = array( 'post_title' =>…
MilanG
  • 6,994
  • 2
  • 35
  • 64
4
votes
1 answer

Google Maps v3 API and WordPress ACF: Multiple Custom Markers

I’ve found lots of code for how to add custom markers to Google Maps, but hardly anything about using different markers on the same map. For instance, I may have 4 markers from an Advanced Custom Fields repeater field that I want to appear with a…
4
votes
1 answer

WordPress get_posts() trouble comparing timestamps in meta_query

Good Morning. I am having trouble comparing a timestamp returned as a meta_key (returning as a string) to the current timestamp while running get_posts(). I am trying to get any posts with end_date_time set in the future and I am getting some weird…
Marc
  • 4,661
  • 3
  • 40
  • 62