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
2 answers

Rendering an image on a WooCommerce product page

Using the Advanced Custom Fields plugin, I am trying to render an image on a single product page in WooCommerce. I found this snippet of code from someone who is doing the same thing, but is rendering a text field instead. How would I change this to…
1
vote
0 answers

Dynamically populate a select field’s choices from a select field

I have a select field that have 4 values. Value 1 Value 2 Value 3 Value 4 When the User selects one of these, I want to load the sub select field of that parent, so if I choose Value 1 I want a different select field too show up and to be chosen…
John Svensson
  • 461
  • 1
  • 5
  • 17
1
vote
0 answers

Order WP_Query by meta_value string date?

I'm using a custom post type 'votes' and am using the Advanced Custom Fields plugin to add additional fields to store data, one of which is a date. The data is stored as a string (long text) meta_key of **completion_date** stored in the format of…
1
vote
1 answer

Get advanced custom fields repeater field value based off of another repeater value

I have a repeater field on a page, in that field i have a post object field and a few text fields. The post object field just gets the ID of whatever post you set. When i am a single post i want to run a database query that uses the current post ID…
Zackskeeter
  • 609
  • 2
  • 10
  • 27
1
vote
2 answers

Wordpress slow meta query on 1000+ posts

The Problem WordPress Meta Query isn't as flexible as the regular query as far as picking dates. The WP Query can pick dates by the month number, the week day name, and many other options, which would be suited well for what I need. ACF Fields Event…
1
vote
1 answer

ACF between two dates on options page

I have a Wordpress site where I'm using the Options Page plugin. On that page, I've created a repeater field (called "husmanslunch") that has a datepicker field (called "date") in it. It's used to enter one meal per day of the week and then I'm…
Erik Blomqvist
  • 471
  • 1
  • 4
  • 16
1
vote
0 answers

Advanced custom fields excerpt limit character length

Right now i have an excerpt that outputs 82 words (ACF excerpt) from each of parent pages that i have. I would like to output instead 400 characters from each page since right now one output have like 400+characters (82words) and another one have…
user4312416
  • 137
  • 2
  • 9
1
vote
1 answer

Paginate Advanced Custom Fields results in WordPress

I'm currently using the 'Advanced Custom Field' WordPress plugin, and I'm wondering if it's possible to paginate my results. Here is the code I'm using on a custom page template:
1
vote
1 answer

Advanced custom fields not showing repeater

Hello so i have had problems showing ACF fields because of an custom plugin. I did then find out that i can instead write: instead of because this…
user4312416
  • 137
  • 2
  • 9
1
vote
1 answer

display class for number of posts with sub_fields

I am using the wordpress plugin repeater. I would like each sub_field post, which in this case starts from the LI, to have its own item counter. So the first item would have a class of one, the second a class of two and so on.
probablybest
  • 1,403
  • 2
  • 24
  • 47
1
vote
3 answers

Advance Custom Fields - All fields from one field group in one frontent array?

I must stres out that i’m not a developer so i might use some “unsupported” terms :). Ok the issue, i have created custom post type called Firm. Also i have created field group with 7 fields (text fields mainly, including website URL field and…
1
vote
1 answer

Can anyone spot why my Wordpress loop breaks all the Advanced Custom Fields code that comes after it?

The following loop is running successfully and shows no syntax error in my editor, but it's breaking only the Advanced Custom Fields PHP that comes after it (all the ACF before it works fine, and everything after except ACF works fine).
1
vote
1 answer

Show posts by tag based on title, in custom post type

On my website I have a directory (custom post type) filled with companies, each have their own listings page. Now at the bottom of the page I want to display all posts which are tagged with the title of that company as shown in the their directory…
wharfdale
  • 1,148
  • 6
  • 23
  • 53
1
vote
1 answer

ACF relationship field with add_post_meta

i try to create a wordpress post by prog. First, i use WP_insert_post to create the post, and it return me the id of the post just created. After that, i want to add information to the custom field on the post, so i use the ID and add_post_meta like…
Gustav
  • 79
  • 2
  • 12
1
vote
1 answer

Advanced Custom Field: How to show data in custom page?

Now I have a problem situation with Advanced Custom Field plugin in Wordpress. Every posts with different information in Advanced Custom Field (ACF), for examples: -post #1: los angeles -post #2: texas -post #3: california Now, I want to create a…