4,548 questions
4
votes
3
answers
95
views
Why does the_field function of ACF plugin return an empty value?
I know that there are similar questions to my question like this one:
Insert php variable in a href
But my problem does not solve with them! I am using "acf plugin" for adding some codes to ...
0
votes
0
answers
73
views
Post content appears on multiple pages, so how should I handle the post content in search results?
I have a site where post content gets used as components on several pages. There's also some nested post content which makes it more complicated.
This is a problem in the WordPress search results, ...
1
vote
0
answers
58
views
How do I fetch ACF custom fields via REST API in a custom WordPress theme?
I am building a custom WordPress theme and using Advanced Custom Fields (ACF) to manage dynamic content. I want to fetch and display ACF fields via the REST API, but I’m not getting the expected data ...
0
votes
0
answers
32
views
Not able the get the ACF repeater field data in the wp query loop
I have registered a post type with CPT and created the component structure to reuse the ACF layout in all pages of the website. The code used for the register post type is here
function ...
0
votes
0
answers
60
views
How to use ACF OpenStreetMap Field plugin in Wordpress with zoom setting?
I'm trying to figure out how to use Leaflet.js that's inside the ACF Openstreetmap Field Plugin. I found a code that was helpful and I was able to modify to display the map on my wordpress website.
...
1
vote
0
answers
68
views
Why do I have missing p tags from acf wysiwyg field?
I’m using ACF in wordpress.
I created a field group named my_group that contains a WYSIWYG field called my_content. Then I created another field that clones my_group.
Inside a flexible content field, ...
1
vote
2
answers
103
views
How can I save Multiple-Selection field values on their own table row with the ACF plugin?
I'm using the ACF plugin. I've created a new Field Groups. I'm allowing multiple selections. I don’t want the records to appear like this:
a:2:{i:0;s:3:"815";i:1;s:3:"818';}
I want ...
0
votes
2
answers
42
views
Wordpress, ACF repeater, date filter
There are posts in which acf repeater field with date ranges from and to
Need to filter posts that fall within the date range in any of the repeaters
The filter does not work correctly.
For example ...
1
vote
1
answer
189
views
Using Advanced Custom Fields acf/init with an options field and shortcode
I'm getting the PHP error "call to undefined function get_field" once in awhile, but not consistently.
Advanced Custom Fields says to prevent this, wrap my function in acf/init to be sure ...
0
votes
1
answer
89
views
ACF - Custom acf/load_value function - Undefined array key
Custom acf/load_value function issuesI'm trying to write a custom version of the backend repeater sorting code here: https://www.advancedcustomfields.com/resources/how-to-sorting-a-repeater-field/
I'm ...
0
votes
0
answers
63
views
ACF: Duplicating a repeater row using Javascript API - Cannot populate a Relationship sub-field
I have a repeater with two sub-fields: a text field and a relationship field. Using the ACF Javascript API I'm able to duplicate the repeater row and then populate the new text subfield, but can't ...
0
votes
0
answers
27
views
Woocommerce add stock from custom fields [duplicate]
I'm trying to add stock through a custom fields "stock_loja1" that I created in the acf.
This is my code so far.
add_action( 'woocommerce_process_product_meta', '...
2
votes
1
answer
85
views
When using wordpress ACF, how can we programatically add new options to a choice field?
I'm importing some data, and generating posts with ACF information, which works well for text fields, and choice fields where the option already exists - but I'd like to add new options to choice ...
1
vote
1
answer
50
views
Not showing results from a get_posts meta_query using ACF Relationship field
I am trying to show related services through my single-services.php template. I have used the ACF relationship field. When I print_r the field data, it all works. However, when I try to call specific ...
0
votes
2
answers
80
views
How do I output an ACF sub field of a sub group on the frontend in WP?
I use WP and ACF and have no problem outputting sub fields, but what I can't figure out is how to output the sub field of a sub group. I've tried a lot of different ways with no success.
Here's a ...