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

How create and ACF form with preview button?

I hava a front end form i want to have a preview button for the form. problem is acf form generates the post id after submitting the form. So can't add a preview link get_preview_post_link this can be used to get the preview link but it requires a…
user3697484
0
votes
1 answer

I am trying to to find how to extract the object(WP_Post)# from each of my custom post types so that I can use the ACF get_fields() function

I am trying to to find how to extract the object(WP_Post)# from each $post of my $posts array in the function below so that I can assign it to a variable and add it to the parameter of the get_field() function. This is not a complete function, I…
0
votes
1 answer

I'm writing a PHP function to search through array an array of zip codes in a Wordpress template file. Why won't my function return a value?

The purpose of the function right now is to iterate through multiple comma separated lists of zip codes (advanced custom field of zip_codes_serviced) and match it to a particular zip code (33606 for testing purposes). If matched the function should…
Blaise
  • 137
  • 11
0
votes
1 answer

How to get ACF repeater filed values one by one?

I am using ACF pro repeater filed to create a table list. I want to get each row separately. How can I get each row's value separately? Here's my code:
Samarkandiy
  • 51
  • 1
  • 1
  • 10
0
votes
2 answers

Front-end add post current date is not working

I am using acf_form() function to add/update posts frm the front-end. Everything works fine except the post date. Somehow it is posting a very old date (1970/01/01). I wanted to post the current date instead. Here is my code: $current_datetime =…
Imrul.H
  • 5,760
  • 14
  • 55
  • 88
0
votes
2 answers

Identifying ACF field after a search result is matched in wordpress

Is it possible to get the ACF field name / ID where the search string matched? The ACF fields are also included with default search functionality of wordpress. So, when a search string is matched with an ACF field value, I also want to identify the…
Imrul.H
  • 5,760
  • 14
  • 55
  • 88
0
votes
1 answer

ACF PRO and Google Maps on WordPress

I'm just looking for some help for the best way to do this and if there's any recommendations on a better way. So I have a Google map on one of the web pages, I need to add multiple marks to show store locations. I am using ACF to store the data of…
0
votes
1 answer

Replacing ACF with my own code while building WP template

Is it possible, in your opinion, to code my own code so I could: 1. upload images in the WP backend interface. 2. attach that images to a specific post types ? Also, I would like to replace repeater fields in option page with my own code.
Daniel Gontar
  • 147
  • 1
  • 9
0
votes
0 answers

Frontend ACF checkboxes not updating in admin on save

I have a checkbox created using ACF in my product admin page. I have successfully added these checkboxes to the frontend but they are not updating when the vendor saves the form. Here is my custom checkbox information... field meta name:…
0
votes
1 answer

ACF repeater sort multiple dates

I have a minor problem, I need to solve the following: $today = current_time('Ymd'); $args = array( 'post_type' => 'event', 'posts_per_page' => 3, 'meta_query' => array( 'relation' => 'OR', 'datumOd' => array( …
0
votes
0 answers

ACF multiple repeater field on the same page not working

This is a pretty weird one. I'm in the process of making a detail page template and need two repeaters fields to display on the same page. I've done this multiple times of different pages and on one page there are 3 repeater fields and they display…
Dan Reeves
  • 11
  • 4
0
votes
1 answer

How do I get Post Object data form Wordpress ACF - Flexible Content field

Using Advanced custom field plugin I have a custom post type that has various custom fields assigned to it. I'm trying to output all of the data that is contained in the flexible content field "content" I have it outputting "text_ad" ok but for some…
0
votes
0 answers

Get the slug of the ancestor category term of a taxonomy field (Wordpress / ACF)

I’m having an issue trying to get the slug of the ancestor category of a taxonomy field created with Advanced Custom Fields Pro (ACF). I have a website that is using the default 'category' taxonomy of Wordpress, and the taxonomy has various levels…
Fedegiro
  • 53
  • 3
  • 9
0
votes
2 answers

ACF count gallery images

I am trying to make an grid of different size images using the ACF gallery field. I have managed to do this before in a repeater field by counting rows, but have unable to adjust this to work with the gallery field. My aim is to have a grid of 10…
CharlyAnderson
  • 737
  • 2
  • 14
  • 34
0
votes
1 answer

Caching List.js Results - Reload filtered results on browser back button

I have a site where I am using List.js to filter between For Sale and To Let properties. The JS for this is as so: var options = { valueNames: [ 'status' ], }; var hackerList = new List('property-list', options); And I'm using a select box to…
user4800977