Advanced-custom-fields Questions
Ad
Create Custom Fields Programmatically combining Textview and EditText
I'm working on making dynamic form from the strings received from json response of the api. here i want to create a dynamic form where i
Wordpress ACF oEmbed field - Embedding Bandcamp content
I've set up with advanced custom field a custom oembed field, called embed. and it's displayed in the front end in the simplest
difficulties to "fontFamily" with regard to the wordpress plugin ACF (Advanced Custom Fields) in Flutter App ...(newbie)
Unfortunately i am not able to display the text lines of the wordpress plugin acf (
Adding ACF to Woocommerce ul.products on Shop Page
I'm using woocommerce and advanced custom fields, where acf group is set up with post type for products. i would like to add a couple of simple
WordPress Shortcode output is duplicated on page
I created an acf image field that i want to add in my product description. i then created a shortcode via this code:
Show label with term when product is featured in WooCommerce
On woocommerce single product page, using true/false via a advanced custom field, i have a label which is displays 'featured' term in text and
Echo ACF oEmbed field in custom tab
I have added a custom tab to woocommerce single product page, and i am trying to echo the acf standard output to display an oembed video.
Woocommerce how to convert a function fires in a hook to a shortcode
I have custom fields added to woocommerce single product page using functions.php:
Display Custom fields with labels & values in WooCommerce prodcut page?
I’m not great with php and currently really have trouble trying to recreate a grid like display below with advanced custom feilds - image of my
WooCommerce get_name into ACF Repeater Field
I am facing the following challenge right now, if someone could help met out i would really appreciate it. my goal is to save woocommerce
Ad
ACF Taxonomy images in product pages
I'm struggling to populate acf product_tag taxonomy images into product pages. each product may be assigned to 1 or more product tag. i'd like to
WordPress/WooCommerce: Save custom payment post meta
I am using a plugin that is creating a custom payment type where the user can fill in a custom payment id. the thing is, i want that custom
Wordpress how to get field from parent category
I'm trying to display an image in a custom field on child category archive pages. the current setup is:
Show ACF field based on time range on WooCommerce single product page
I'm trying to show a text acf on woocommerce single product page. based on time range. this is the code, which i am currently using:
Add product custom fields to cart and display them everywhere in WooCommerce
Ive set up an acf with 2 checkboxes, which are shown up in the product admin:
Using ACF number field as price for WooCommerce custom product type
I've seen online that you can add all custom post types to a woocommerce cart as long as the cpt has a price field. the only issue is that you
Custom Query Filter for Elementor Posts by relationship field (ACF)
I have a custom post type setup called 'artists'. each single artist is a page (artist profile if you wish), has a list of products that are
Woocommerce product subtitle is misplaced
Hey everyone i hope you can help me with this. i created 2 subtitles with acf for my products (subtitle and subtitle_2) i want them to appear
How to make Wordpress save_post_($post-type) hook works with multiple Custom Post Types
I have an issue related save_post_($post-type) hook and acf gallery field. i got this code snippet from somewhere. let me explain: i
Query custom posts filtered by ACF users id
I have custom post type called journals and an acf users field called editors (return format user id ).
Return different content based on multiple select inputs
So basically i am trying to show different prices based on multiple select inputs. the prices are stored in wordpress using advance custom fields
Ad
ACF repeater subfield for meta query
This is my meta query.. (var_dump mode) array(2) { ["relation"]=> string(3) "and" [0]=>
Output comma separated list of ACF repeater sub field values
I have an acf repeater field field_5f71d4eaaf381 for email addresses and i want to output a comma separate list of the sub field
WP_Query can't filter between two dates
I am using wp rest api as backend of a mobile app. the app is a simple todo list, where tasks have a task_date. i came up with
Displaying ACF field in page or archive head
I would like to use an acf field to inject schema merkup to a few specific pages on my wordpress website. some of them are custom taxonomies or
not able to filter WordPress posts with custom meta-data
This is how i load the post via backend via php $projects = new wp_query([ 'post_type' => 'verlage',
Create a simple plugin to show ACF in wordpress posts (if they exists)
After installed acf plugin in wordpress website, and configured some custom fields, i'd like to show acf custom fields only if they exists in my
Wordpress ACF passing a variable as a value into args array
I'm trying to create a dynamic posts layout. in the backend, i have a field where i enter the slug of the post collection i want to pass in.
ACF Custom Fields, Custom Post Types and Bootstrap Carousel
I am building a front end using understrap/bootstrap and cms system in wordpress using acf and custom posts. i am trying to integrate a carousel
How to output multiple custom fields on a WooCommerce hooked function?
I'm using the following bit of code to get data from acf to the additional info tab on the single product page. now i need to add multiple of
Post object show term name
How can i show the term name thats linked to the post of a post object (acf)? with this code i can see the title of that post:
Add post with custom field value to WP Rest API
I have created a custom field for blog posts in wordpress. it's a simple radio button for either "yes" or "no". i am wondering
Ad
Filter Custom Post Type Based on ACF date field value
I have a custom post type called "events". all these events pages have a acf date field to enter event start
Javascipt increases the 1st number found in URL instead of the image id
In short, the code below will increase the image number in the url in order to navigate to the next image:
How to show WooCommerce custom product meta in new order emails?
I'm currently successfully saving custom post meta for a single product as follows: function save_payment_terms( $product_id )
the_field() function puts value in the wrong position
So i was trying to get the value of a custom field i created. basically i'd like to populate a gravityforms shortcode (inside the loop) in my
Pass acf fields to Leaflet JS
I found this example on the internet that comes pretty close to what i want to do. i have some acf fields with the latitude and longitude of some
PHP counting each new line In textarea field as a new line and wrapping in a list item
I am using a textarea (advanced custom fields) to capture the users selection. so the user first answers if there are education areas
Hide row if ACF sub field is checked
I got a acf reaper field with a couple of rows i am trying to show. however, i only want the show row if it has a checkbox checked (checkbox is a
Post ID into plugin
I have a small plugin to update the acf fields in a posts. in each post, there are many fields that need to be updated with the received data from
ACF not displaying in Wordpress Template Parts
I am using the acf plugin to create custom fields for my wordpress site. everything is going well with zero issues when i keep my code all on the
Gatsby: How do you get ACF (Advanced Custom Fields) to work with "gatsby-source-wordpress" plugin?
I tried following along to this tutorial but it is using a much older version of the api than the current version so it didn't work:
Query posts based on an ACF repeater sub field custom taxomomy
I have a custom post type which lists a set of colours and the types of products they are available on using an acf repeater. the intention
Ad
acf_form not publishing fields in a CPT
If i set post-status to 'publish' (as shown below) this form creates the post, but my acf fields for this post type (some should be
Displaying an ACF field via `woocommerce_view_order`
I have created a custom field in my order with the acf plugin. the field contains a tracking code and is stored under
How to get taxonomy in a div
I want to add a taxonomy in my div with the different other fields, but i'm new to wordpress and o don't find how doing this, if someone can help
Using getElementById through with a php variable
I am using this jquery script within a php to add a unique id onto each looping modal. thing is everything works perfectly well except i
How to display meta_value only once if the value is the same
I have created a loop to display the meta value but wanted to show it only once if they are the same of value. i have tried using array_unique but
get_posts not return all post, with multiple custom post type
Thank you for read i have passes $args variable it contain following args. this args variable pass in get_posts method. it will give only
ACF repeater in taxonomy (category) doesn't work
In a taxonomy category i have: repeater field named questions. inside a repeater i have a field named
Create a hidden custom post type in wordpress - but not totally
I need to register a custom post type, said "hidden_cpt", which to be : not visible to public site no admin
Advanced Custom field datepicker data giving errors when used within custom wordpress post loop
I have custom wordpress front page where i want to show event dates in this format but here only post date shows..i want to replace it event date
Display specific highest custom field value from cart items in WooCommerce
I am using advanced custom fields plugin with woocommerce and i have a custom field get_post_meta( get_the_id(), "lead_time", true
ACF - image as a subfield
So after a lot of researching and trials and errors, i come to you. this seems to be very basic and still no luck. the issue is that my image does
Ad
PHP, How to fetch information from two different $post_id's within one loop
I am building a theme for a front page which displays the newest posts of my wordpress website. i want to show with each post an image, (a
How can I get an image title and set the title attribute using wp_get_attachment_image and ACF Image fields?
I am using the advanced custom fields image field, returning an id. the documentation says that when using the image id, you use the
Custom Shortcode Gallery Ignoring Enqueue'd CSS and JS files
I am attempting to bring in my own image gallery through a shortcode so i can add it to an elementor widget. currently, i have everything done,
Disable WooCommerce product add to cart for specific custom taxonomy term meta value
I have a woocommerce store with woocommerce brands and advanced custom fields (acf) plugins. i need to be able to "close" a
How to set multiple selected values for Select field type programmatically?
I have a field my-field type of my-field is select field property allow
Advanced Custom Fields within WordPress - Unable to use a repeater within a group
I have done this 20+ times previously but i cannot figure out why my call to the repeater field is breaking my site. the page is unable to
Need help using Advanced Custom Fields with Flexslider 2
I am trying to produce a basic slider in wordpress using acf & flexslider 2. i want to show text on the left & an image on the right, like
ACF not returning image
I am trying to use acf to put an image on one of my template pages. i did a var_dump of my variable and the data is there. why is my image not
How can I get information from an array from an ACF Image field in WP?
I am very new to wp so this may seem like a very simple question. i am trying to provide a background image url via css class and advanced custom
Get the ACF text field value from the category of a custom post type in Wordpress
I am trying to create another class using the value of a text field from acf pro. i have a custom post type named "portfolio" and
Display extra text if the value in Advanced Custom Fields meets specific criteria
I am using advanced custom fields in a custom wordpress template to power a review site. my current code lets me display what i need, but now i
Ad
Use an ACF shortcode value that returns a url as the src for an image tag
Trying to create an image that can be reused multiple times on different pages throughout the site through it's url. currently using acf to create
Cannot hide <tr> if <td> are empty
I want to hide <tr> only if no data is available for <td>. i tried with many scripts as well as if
Return block with custom key from multidimensional array
From multidimensional array i have to return only this block which have key "widget_section", i've tried with array_key_exists function
ACF not displaying the value in the footer of the wp theme
This seems really simple, but i can't get it to work. all i want is to display a heading that is stored as a custom field (it's the h3 tag). i'm
Timber + ACF - How to get get_row_index() working?
Problem: i would need to get the current layout index from flexible content field. acf already have built-in functionality for
Custom colour not pulling through correctly inside loop
I have the following loop which pulls through and lists a custom taxonomy. in this case it's listing all of the 'product categories' from my
How to update complex field programmatically and keep ability for updating?
I've tried to update this way $old_field = get_field( 'my-field', 'my-option-page' ); $my_field_structure = [
Custom Fields added on Easy Digital Downloads - Frontend Submission form is not saving/updating
I've integrated custom fields using advanced custom fields plugin on a submission form created using easy digital downloads -
Echo AFC image subfield
Im trying to echo an image from a afc image field, but cant get it to work. for a regular textfield with a subfield with group name
Echo ACF subfield of group in element
I'm trying to output the inout from a subfield of a group in afc. with a regular textfield i just use: <?php $ups4 =
Cannot retrieve ACF fields from a custom plugin through get_post_meta()
I am working on a plugin to add custom post data to the front end. i am using the advanced custom fields plugin to add custom fields to the
Ad
WordPress ACF Google Maps Radius Search
I got a big problem and have no solution. i work with wordpress and custom-post-type (cpt) and advanced
Call function in Wordpress after a custom post type updated/created with ACF
I want to call a function every time there is a change in a custom post type. either publish, update or delete. in that function, i fetch all
WP_Query in wordpress and include ACF in results
I try to fetch all posts from a custom post type in wordpress and include the advanced custom fields (acf) in the results as well, in order to
Moving custom field images to product Gallery Woocommerce
I've several custom image fields (acf) from an old configuration, and would like to move those images in the product gallery (woocommerce), now
WordPress ACF use HTML sign in table
I've already asked this
What's wrong with my update_post_meta function?
When i save an acf post, i want to grab an acf user field called contrib-id for the current user, and save it into a relationship field called
WooCommerce Display avanced custom fields (ACF) inside order notification
I've added the following snippet to display a custom field (that don't display taxonomy field if product has field) with the estimated delivery
Get a custom field in WooCommerce cart for variable products too using ACF
In woocommerce, i am using advanced custom fields plugin to display a custom field(image) called 'product_cart_image' which replaces the default
Display video instead of product thumbnail on WooCommerce archive pages
I'm trying to display video of a woocommerce product on shop page using advanced custom fields plugin . i want to create a condition, if a
Change background color based on Wordpress post metadata
I have created a frontend form that collects tennis match results using wordpress and advanced custom fields. one of the form fields
WordPress post update AFTER ACF field updates
The code below sends out an email every time i (change the status field and then) safe/update the post. but it's not working the way i want and i
Ad
Using an object's property in array
I want to use advanced custom fields to determine from which category products will be shown. the acf field gives the id of the category and from
get_field() does not work inside my foreach loop
I've made a custom field for my product categories so that i could select icons accordingly using acf plugin. i called all the categories like
how to use this code in my theme use short code
Echo do_shortcode( '[karma_by_kadar__simple_player title="' . get_the_title() . '" src="' . the_field( 'download-link' ) . '"
How to implement photoswipe into wordpress custom theme?
I'm trying to implement photoswipe into my site but i'm not sure how to go about it for a wordpress site.. i'm using acf repeater to
Can I do a WP Query within X days of today's date
I've got a little bit of code that returns some info from a cpt (pre_jobs) when a certain taxonomy is selected (repeat) and sorts it by an acf
Display product ACF fields on a specific WooCommerce email
So i almost got it, but this last detail of specifying woocommerce emails is leaving my head in a bit of a knot here. i need to show acf
Problem with ACF Loop table checkbox (WordPress)
I'm busy with an wordpress website and use advanced custom fields plugin. having a problem with made a table, so there are option which are true
How to add ACF field to custom column on WooCommerce admin orders list
Acf is set up for post type on woocommerce products. however, i am trying to add a custom column to woocommerce orders list within admin dashboard
Wordpress Advanced Custom Fields variables not rendering
I am using a plugin called pay for post with woocommerce, it hides posts or parts of posts and allows you to sell access to that post with a
ACF - filter relationship query to display WooCommerce product available in this category
I'm trying to create a custom category product sort order in woocommerce using advanced custom fields. i have found a
Tring to save sub_sub_field in ACF [wordpress]
I have a group field in acf (with social media links). so i write in a input form the link of my social media. i want to save those in my
Ad
Adding different text fields in each category footer using enhanced custom categories plugin in wordpress
I have been trying for hours to display an advanced custom field in the footer area in order to change the category text according to each
Fatal error saving CPT id to current user meta
I have a cpt called contrib. when i add a contrib post, i want to insert the id for the contrib post into the user meta for the current user in an
Ad
Blog Categories
Ad