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
1
vote
1 answer

Headless Wordpress GraphQL & ACF-Pro registerUser fields not showing

I am using a headless Wordpress with ACF, WP-GraphQL and WPGraphQL for Advanced Custom Fields installed. In ACF I created a field group with some fields and set the condition to User Role == All. The Goal is to add some fields to the regular…
1
vote
0 answers

Display the value of the first level of a sub field child of a Group [Layout] inside a Repeater [Layout] condition

I have a Repeater [Layout] inside a Group [Layout] and I’m trying to display the value of a sub field Text [Basic] from a child of the Group [Layout] but it returns me nothing. It’s empty when I’m making a condition to make sure if the Repeater…
1
vote
1 answer

How to make a custom Archive page with Wordpress using custom post types and acf fields

I am building a child theme on GeneratePress to create a custom site for a client and am stuck on customizing the Archive pages. I've determined that it will be best to ignore the theme functionality and build the page loops from scratch. The custom…
samseurynck
  • 113
  • 1
  • 10
1
vote
0 answers

Update user repeater meta (ACF) with another user meta field value

My goal is to get a signed-in user to select a color( via front end form and saved in ACF user meta field group) that will be applied to another user meta field inside a repeater. The field must be the same for each row inside the repeater ( for…
Luca
  • 11
  • 3
1
vote
1 answer

Advanced Custom Fields - don't show field if field is left blank with PHP

i'm using ACF and the repeater to spit out a series of subfields including: image header description button title button link But, while most of the sliders have all of them, SOME don't have the button title or link so if i don't fill it out, it…
Churchill
  • 19
  • 5
1
vote
0 answers

Insert number value to terms with ACF

I have issue with inserting terms while typing select input field. Strings will be correctly inserted but if there is date or number values for terms then it inserts term ID. I have a lot term fields and some of them are numeric fields like date,…
Michael J.
  • 11
  • 1
1
vote
0 answers

ACF Checkbox Output Sorted and Styled

I have the following code:
1
vote
1 answer

How do I display the Category description field within the dropdown generated by ACF in my custom post type?

I'm using a custom post type to display a taxonomy category within itself, when editing a post from this type, and I would like the dropdown (or perhaps some other way to select) to be able to also display the Description field from the category so…
WebDragon
  • 876
  • 6
  • 12
1
vote
2 answers

How to add if else in ACF

1
vote
1 answer

ACF - Display a photo for selecting a checkbox in Advanced Custom Fields

To sell my products, I need to display file types on the wc single product page. for example : html , css , js , svg --- I wrote a code for this and it works fine. But I feel it is not standard. function acf_product_icon_type(){ $prodoct_icon =…
1
vote
0 answers

WP_Query order by ACF number field with decimals

I have an ACF number field that accepts decimal places. When I use WP_Query and order by the number field I get weird results. For example the following numbers.. 6.4 17.7 29.8 146 are output in this order on the page.. 146 17.7 29.8 6.4 Its like…
Dustin
  • 4,314
  • 12
  • 53
  • 91
1
vote
1 answer

Display ACF User Field on Frontend

I am trying to display an ACF user field on the front end, but I only want to have the display name and the users email show up. Here is what I have so far, but on the frontend a random string shows up. I debugged the $user variable with print_r()…
Webbb
  • 31
  • 7
1
vote
1 answer

Advanced Custom Fields : Repeaters

I'm trying to display below using ACF (There are multiple sections so made this section a repeater) - Section Title ( Under section title there are multiple packages so made this section a repeater as well) -- Package Title -- Price Everytime when…
Asanka
  • 483
  • 2
  • 8
  • 21
1
vote
0 answers

Max megamenu custom widget with ACF fields not retrieving any data in secondary language WPML

I have a problem when retrieving acf fields added for a widget. I will explain the situation. I am using MaxMegamenu plugin for implementing megamenu, ACF pro for custom fields and WPML for site translatiom. Primary language is Deutsch and English…
1
vote
1 answer

Get ACF repeater field values from all posts, sorted by a sub-field

I have an ACF repeater field (publications) with 2 sub-fields. title and year. I need to select from the database all titles from all posts matching a condition (let’s say all titles which include ‘search-term’) but I need the result sorted by the…
Baras
  • 159
  • 1
  • 6
1 2
3
22 23