I am using ACF and PHP to create a WordPress website currently working through basically a loop and looking to connect a subscript and a tag by an ID that needs to have a counter increment on it so that the ID can change from #footnote-top-1 to #footnote-top-2, #footnote-top-3, etc and have the link also change. , . If so
Tag: advanced-custom-fields
ACF pro – frontend form and WordPress categories while creating post
I try to build page where user can fill the form (using my custom ACF PRO fields) and save it as a post. Then admin need to check it and publish if everything is OK. So far I have form based on custom post type and ACF fields work good so far. But I need to display checkboxes with native
advanced custom fields can’t do nested loops repeater inside repeater have_rows() not doing anything
I have a repeater inside a repeater and I need to loop what is in it. I’m following this: https://www.advancedcustomfields.com/resources/have_rows/ This is my field structure: So with that in mind, as I understand it, I need to loop over agenda_section_events and inside that I need to get rows https://www.advancedcustomfields.com/resources/have_rows/ So that code looks like this: I’m really confused because all
PHP if statement: Zero vs ’empty’
I’m creating a WordPress website using the Advanced Custom Fields plugin. I have a set of fields for tennis score results. In the template, I’m showing these fields like this: The problem is that some scores are zero, so they’re not showing up. I understand that this is because 0 basically equals null, so the statement is false. One solution
How to get the meta value of the ACF field (wordpress)?
I need to get the meta value of the ACF field. ACF field called ‘submitdate’ (format => Date Time picker : Y-m-d H:i:s) already has data ‘2021-06-11 17:23:36’ I tried the following code, but it only shows correct $post->ID, it doesn’t show $submitdate. No error in console. Would you please let me know how to echo the value of the
Update ACF User Radio Button After Gravity Form Submit
having a issue with getting a ACF field associated with a user profile to update after a gravity form submission. As it stands, this logic currently does nothing :(. So i’m hoping someone can help out. Here is waht I have so far: So it should be pretty straight forward I would image, but it just seems to do nothing.
How to auto update an acf field based on the condition?
I have two custom post types with acf fields. Custom Post_A, which has 2 fields – title / submitted Custom Post_B, which has 2 fields – title / percent Both Post_A and B have the same title (which is …
Display an ACF field values in WooCommerce product archive loop
i’m currently playing around on localhost since i’m going to design an ecommerce for a client who owns a records store. I’ve installed Elementor, WooCommerce and ACF, and at first tried to use elementor custom skin to create a custom loop for my products, where i easily added the field i wanted with dynamic data. However, this turned out to
Replace ALT attribute with image caption + ACF relationship URL if it exists
I have this WordPress function working, but it has 1 obvious issue in testing and I’m sure many other formatting issues. I’ve pulled this function together from various pieces but would greatly appreciate feedback on cleaning it up. Purpose of the function Modify ALT attribute of any image in a WordPress gallery Get image caption field and add to ALT
WooCommerce product custom additional taxonomy in a loop issue
I am trying to display custom taxonomy field’s names and descriptions for single products in a loop. I’ve created custom product taxonomy next created sample tags: One, Two and assigned them to the Product (via ACF plugin) I want them to be displayed on product page. I was trying to use this code: but there is an issue I cannot