Questions tagged [acfpro]

ACF PRO is the professional version of ACF (Advanced Custom Fields), a plugin for WordPress

ACF is a WordPress plugin for WordPress edit screens and custom field data.

References

341 questions
0
votes
1 answer

Looping through all the ACF fields whose key starts with a specific string

I have some custom fields on some posts, and I have assigned some of them keys with unique values: 'field_tab_' . uniqid() I would like to loop through all the ACF fields whose key starts with specific string field_tab_. This is what I have so far,…
lastnoob
  • 646
  • 12
  • 28
0
votes
1 answer

Pass single PHP value from ACF Repeater Field

I have a page for team members of a company. The team members are rendered with an ACF repeater that has fields for Name, Job Title, and Biography. On the page I would like to render just their Name, and Job Title. If you were to click on a team…
rnrh
  • 231
  • 1
  • 16
0
votes
0 answers

Simply update ACF field value via jQuery

I’m trying to update an ACF field value in the database via jQuery. This is super simple to via PHP, using update_field(), however i cant go with this approach as I want to make the update based on the current time in a html5 video. That part is not…
dungey_140
  • 2,602
  • 7
  • 34
  • 68
0
votes
0 answers

After Wordpress and ACF version upgrade the ACF flexible content layout field is not storing in the database

In our application, we are using multiple ACF flexible content layout fields but one of the flexible content layout fields is not storing into the database. That ACF flexible content layout field name is given like "product_category_&_series". Is…
Lucky
  • 356
  • 1
  • 6
0
votes
1 answer

ACF Repeater Field on Product Variations

Using the following code to add ACF to individual product variations as per here and here. Everything seems to be displaying properly, except for a repeater field: // Add product variations ACF rule add_filter('acf/location/rule_values/post_type',…
user2521295
  • 823
  • 2
  • 12
  • 23
0
votes
1 answer

Pseudo element after heading showing icon that is dynamic

Hi there I'm making a wordpress music site. I have a heading which is dynamic and linked to ACF on my singular template. Now that heading is an single/ album music title. My idea is that if the track has explicit/ strong language i want to put and…
chaudes
  • 1
  • 1
0
votes
1 answer

Add Commas Between Permalinks

I have two CPTS created: People and Locations. On a single location page, you can see all people that work there. Once you click on a single person, you can see their bio as well as all location(s) he or she works at. I have created this set-up…
nik218
  • 68
  • 1
  • 2
  • 11
0
votes
3 answers

How can I get ACF field value in WordPress loop?

I'm trying to get ACF filed value for post in loop. But for some reason the value is not being displayed. I've already tried And ID); ?> None of the…
Samarkandiy
  • 51
  • 1
  • 1
  • 10
0
votes
1 answer

How to auto increase the number in ACF PRO LOOP

I want to auto increase number in each "id", I using ACF PRO and chose type "Repeater". I tried these code bellow but it doesn't work
0
votes
2 answers

Get custom post type fields through a repeater

I'm in a WP project. I created a custom post type called Team Members I also created a custom field block with a field called contact_members which is a repeater and has two sub-fields called location_map and member. This member sub-field is related…
afonso
  • 11
  • 4
0
votes
1 answer

wp_mail not working in acf/pre_save_post or acf/save_post

I am trying to send a confirmation email once the user has used the form I am creating via acf. Below is the code I am using in a plugin, but somehow the wp_email is not sending an email. Not receiving it, nor did I receive an error. function…
udarts
  • 745
  • 1
  • 8
  • 23
0
votes
1 answer

ACF group content in Elementor?

Elementor is great to link single ACF-field content. But I need to combine some of them in the ACF Layout "group", so that it's easier for the customer to overview and edit the content. But Elementor does not support ACF fields inside an ACF group –…
0
votes
0 answers

Add Native ACF Fields with php

I know i can register ACF fields with php, in the way explained here, Using acf_add_local_field_group( $field_group ) and so. But my question is, how can i register regular ACF fields, that would be available in the wp-admin ACF options and that i…
user315338
  • 67
  • 6
0
votes
1 answer

Label ACF 'repeater' doesn't work anymore since update WordPress and ACF plugin

I have updated my WordPress from 4.6.x to 5.2.1. I have also updated plugin ACF Pro from 4.x.x to 5.8.1. Since then, ACF labels of type 'repeater' doesn't work anymore : they don't appear anymore in admin panel and in front of application. The other…
0
votes
1 answer

Query posts by multiple meta keys not working when comparing with current date

I am writing a code to query posts meta value based on other meta value compare date, below is my code, it query all posts ignoring the date condition: i have tried to use 'LEFT JOIN" sentence with no success $querystr = " SELECT DISTINCT…
WPDeveloper
  • 41
  • 1
  • 8