Add ACF in table wordpress
I have a text field with ACF. On one page where I have a simple table, I want to import that ACF text into one field in the table. But not sure how to add?
I have a text field with ACF. On one page where I have a simple table, I want to import that ACF text into one field in the table. But not sure how to add?
I'm using tooltips from Bootstrap 5 along with Advanced Custom Fields in Wordpress. I currently have it set up like this. <button data-bs-toggle="tooltip" data-bs-placement="right" data-html="true" data-bs-sanitize="true" title='<?php if (get_sub_field('desc')): ?><?php the_sub_field('desc'); ?><?php endif; ?>'>tooltip title</button> The first issue was it…
I'm using Advanced Custom Fields in WordPress and using PHP to write out the title of an object. But, instead of getting the title on its own, the code is retrieving the title plus presumably another title. It's not clear…
I am working on a WordPress site that is using Advanced Custom Fields and the HTML title is in one of the field groups and each new page has a page title entered manually and then output with <title><?php echo…
I am using the Advanced Custom Fields and a Custom Post Type. Currently I am using a child theme from Block Theme 2022: https://de.wordpress.org/themes/twentytwentytwo/ I am now trying to output the Custom Fields on the Single Page of the Custom…
I am using Word Press with Advanced Custom Fields and have a loop to add a field (location) to an Options tag. There are several posts with the same location, so if I loop normally I get results such as…
I have multiple variables and i need to check if all of these variables are set or not "0". So all of these variables need to have a value. The values i get from WordPress ACF: $p1 = get_field( "wert",…
Why does this return all posts; $partner = get_query_var('partner'); echo "Partner ID: ". $partner; // Echoes correctly $args = array( 'post_type' => 'product', 'posts_per_page' => -1, 'meta_query' => array( 'meta_key' => 'partner', 'meta_value' => array($partner), // also $partner (without array)…
I'm trying to post to my custom Wordpress field via the REST API from my android app. That said, when I look at the JSON structure of any ACF fields, they're nested inside "acf" like so: { "acf": { "phone_number":…
How do I set an image that was uploaded via Advanced Custom Fields as the featured image of that woocommerce product only on the single product page? This is how I set it up: Step 1: I created an ACF…