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
Add field to Woocommerce emails and orders
I've added a date picker to woocommerce to allow customers to choose when they collect their orders from a store. by piecing together bits of code
Woocommerce Product Custom Field for iframe not work correctly
I create a custom field for woocommerce product by below code. i want use this custom field for store iframe code and display it in product single
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:
Disable place order button if billing_address_2 contains value at WooCommerce checkout
I need to disable place order button if billing_address_2 contains value 10+ right before order is placed. i was thinking about how we
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.
Ad
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:
Set priority for custom fields on woocommerce product tabs
I want to add two custom fields to the general data tab when a product is simple. however, i want these custom fields to appear on top of the
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
Hide product stock for certain products on single product pages in WooCommerce
I try to add a option to hide the product stock info but only on certain single product pages. we do not want to hide this info for every
Display custom field from product category after WooCommerce loop product title
I created a custom field in the category creation/edition page using this code: // product cat create page function
Add radio buttons with validation on My account > edit account in WooCommerce
Via the code below i have added radio buttons on the on the profile page of my account in woocommerce. the issue is i can't make the radio
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
Add a custom select field with collection times in WooCommerce checkout
I have created a custom checkout field for collection times on my website (see image attached) this is my current code:
Display custom DOB fields in WooCommerce admin order edit pages
I've added this code to functions.php // hook in add_filter( 'woocommerce_checkout_fields' ,
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
Ad
How can I optimize this code to display custom fields?
I am displaying several custom fields for woocommerce products: function fields() { global $product; $value1 = get_post_meta(
How to reorder additional fields on checkout page in WooCommerce
I cant figure out how to reorder the additional fields, on the checkout page in woocommerce. i have added one extra field to the
Create a custom hidden field in backend product pages and use value in WooCommerce products sort by
I am making an e-commerce website using woocommerce. with the help of this forum, i was able to code some useful snippets. however, i am stuck at
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:
Custom hidden field on WooCommerce checkout not saving to user meta issue
I cannot figure out what i am missing here. i am creating a hidden field on the checkout page, that contains a value after a customer's
Display in WooCommerce thankyou a custom field value based on a custom table
I have a code i have done to display custom field value on thank you page but it does not display the value. however i am able to display the
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
Adding Product Custom Fields to WooCommerce Completed Order Emails
Is there any way that i can add some product custom field i create to include in woocommerce completed order email. i have created come
Ad
Add a custom field as a default value in WooCommerce backend and populate previous orders
I know that the first part of my question is possible but haven't found how to add a custom field to all orders in the back end
Show custom field as external link in WooCommerce
I have the code that shows the custom fields on the single product page and the woocommerce archive page.
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 ).
How do I add custom fields into the Brands page in admin back office Prestashop?
I'm trying to add a custom field into the brands page in the admin back office. before this, i successfully added a custom dropdown box in
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
Get and display product custom field on WooCommerce archive pages
I have successfully added a custom metabox to admin product pages. the above code generate an input type text in the admin-area where i can insert
ACF repeater subfield for meta query
This is my meta query.. (var_dump mode) array(2) { ["relation"]=> string(3) "and" [0]=>
How to add HTML5 'required' attribute to woocommerce_form_field
I'm currently working on the woocommerce registration page in my wordpress theme and added a hook for users to accept the terms & conditions -
Ad
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:
Ad
Hide past posts in Wordpress with custom field date
I want the blog posts in wordpress to be sorted by a date set in custom field and hidden when that date has passed. i got the sorting working but
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
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
Add a custom field to an order in WooCommerce 3+
In woocommerce, i would like to add a new custom field to order details. i now that i can use use the code below to create a new custom field
Save product custom field value as custom order item meta in WooCommerce
I have problem with custom field in woocommerce (latest version). i need your help. my code function
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
Ad
How do I add a custom field to the "Products Inventory" tab in the WooCommerce settings?
I am searching for a way to add a new field to woocommerce - settings - products - inventory see attached image:
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
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
Ad
How do I call post objects (products) custom fields using shortcodes on posts
I'm trying to show 'featured products' on blog posts. these featured products are to be selected with custom fields post objects on the back end
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
Display a custom field in WooCommerce email notifications for admin
I installed checkout field editor on my wordpress site. i created the custom field. however, using the following code, the pcustomer field appears
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
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,
Ad
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
Woocommerce - I need to display the price of one unit ($7) at the store and product page, but charge the real value of the product (100 pcs)
At my online store, one of my suppliers offers me packs of 100 pieces of a product, however my competition displays the unit price of the product
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
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
Ad
Passing Custom User Fields to WooCommerce Order Metadata
I'm working on setting up an woo site that will be integrated with a sage x3 erp system. we will be pushing new orders through to sage. now i am
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
Ad
Blog Categories
Ad