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

Populate Select Field based on ACF Repeater Text Input Choice

I am struggling a bit with this and could use some help. I have an ACF repeater called "gas_grades" and within that repeater I have two fields: First filed is "grade" and is a text field. Second field is "size" and is a repeater field with a text…
minemindmedia
  • 293
  • 2
  • 5
  • 19
2
votes
0 answers

Advanced Custom Fields: Call to undefined function get_field()

If I try to use ACF inside my custom functions plugin I get this error: Uncaught Error: Call to undefined function get_field() in I created my custom function plugin to avoid using the default functions.php that comes with the theme, because it…
PickleRiiiick
  • 31
  • 1
  • 4
2
votes
1 answer

ACF and Vimeo Upload

I used plugin for https://bitbucket.org/jupitercow/acf-vimeo-uploader-field/src/master/ and unfortunelly it stopped working. Now "Select file" button doesn't make any action. API looks good. Console doesn't display any errors. Variables from JS…
Adriano
  • 21
  • 1
2
votes
2 answers

How to stop the video from playing after modul is closed (ACF)?

i have a problem and i dont know how to fix it. I have a acf repeater, and a video repeater on it from youtube, when i click a button to open the video, the video is opened as a modal, but when i close the modal, the video keep still playing in…
2
votes
0 answers

Use ACF load_value hook to pre-populate the Upload File field

I'm trying to pre-populate the File upload field with files already submitted previously, using ACF PRO and ACF Frontend Form. So far, I am able to retrieve a list of files that was previously uploaded but can't seem to figure out a way to set it in…
chenZ
  • 21
  • 2
2
votes
2 answers

ACF Repeater field returns string containing the count of repeater

When I use get_field('repeater_name') it returns a string that contains the a number which is the count of the repeater while it should return array of sub-fields, this issue have been reported repeatedly before but none of them provided a stable…
Amin
  • 1,637
  • 1
  • 22
  • 40
2
votes
2 answers

Display html for selected products or products categories

Hello I am using advanced custom field plugin for displaying some html only for selected products or only for products for selected categories in option page with relationship picker. My result instead is displaying for all products. This is what I…
art
  • 157
  • 8
2
votes
1 answer

Wordpress ACF add row to flexible content programmatically

I want to add a row to my posts flexible content field. I create my ACF fields using the code from the export tool, this is a part of it: acf_add_local_field_group(array( 'key' => 'group_5c4c39a08349a', 'title' => 'Posts page', …
user936965
2
votes
2 answers

Sortable custom column using ACF Pro select field in Wordpress admin for post list

Code that works to create new column in Wordpress admin for post list: //adds new column to posts list in Wordpress admin add_filter( 'manage_posts_columns', 'set_custom_edit_mycpt_columns' ); function set_custom_edit_mycpt_columns( $columns ) { …
aronmoshe_m
  • 908
  • 1
  • 6
  • 15
2
votes
1 answer

Allow admin to bypass required fields in certain situations with ACF?

I've created an ACF frontend form using acf_form; these fields are added to the User record on the backend; however because this form has required fields this means the admin cannot make basic changes to the user on the backend unless the user has…
Brett
  • 19,449
  • 54
  • 157
  • 290
2
votes
2 answers

I am trying to add some sort of widget or menu to the top of all of my Wordpress sites pages

I am currently working on a Wordpress site, one of the tasks was to create custom post location post types which I was able to do. I then used a filter I wrote in functions.php to include a separate locations.php file I wrote to be displayed on my…
Blaise
  • 137
  • 11
1
vote
0 answers

ACF field data not registering in block render

I have created a custom block in WordPress, using an ACF registered block. The purpose of the block is to allow the addition of either a regular post, or a custom post type post to a page. The block works as expected with a regular post. However, no…
anne
  • 11
  • 1
1
vote
1 answer

Apply same post format as WP JSON if ACF return format is Post Object?

I've been struggling for a few days on implementing a "Related Posts" feature, and unfortunately PHP/Wordpress is not my strong suit. Currently I am hitting this endpoint on my…
J. Jackson
  • 3,326
  • 8
  • 34
  • 74
1
vote
2 answers

How do I get ACF image alt text?

I have a wordpress project that is using ACF fields to pass images/video into a carousel. How would I get the alt text for the associated image? I have tried to get_field('image') and various get_sub_field() calls, but image does not seem to be a…
1
vote
1 answer

ACF PRO Image in Repeater not showing

The images are not showing in front-end. ACF settings screenshot
Lemmor
  • 23
  • 4
1
2
3
22 23