All Questions
Tagged with custom-field advanced-custom-fields
264
questions
0
votes
0
answers
22
views
Cannot Access ACF Field Values via my Plugin
Objective
I am working on a WordPress site built using Timber/Twig. I have a plugin (built using standard PHP and saved in the standard plugins folder) that is supposed to grab ACF values from a ...
0
votes
0
answers
14
views
Populate Elementor Form based on first selection
for better understanding, check this elementor tutorial https://youtu.be/wYv0tMFDFG0?si=cg2nQE6a5zl0FdHp&t=610
starting with 10:10 min, is what I need.
Instead of Options 1, 2, 3, etc, I have ...
0
votes
0
answers
20
views
How to create advanced custom fields for backend content
Is there a straightforward way to create custom fields for module-based content on WordPress?
Example:
User Creates page
Creates Page content sections through forms
Row 1: Column 1 - Content A ...
0
votes
1
answer
159
views
get_field for a widget value returns null ACF
I am using `ACF` plugin to add a custom field to my widgets.
After creating the field with the name `mobile_enable`, tried to get the value with the method explained in the ACF docs which is the ...
0
votes
0
answers
351
views
warning: trying to access array offset on value of type bool ACF field image group
I have a problem with an acf function for displaying an image by array.
I can get my image to work well when I upload it to the field associated with it.
On the other hand, when I don't put an image, ...
0
votes
2
answers
45
views
How to conditionally display an ACF custom textarea contents only to those users chosen from an ACF User field
How to conditionally display an ACF custom textarea contents only to those users chosen from an ACF User field.
I have an ACF User field (allowed_users)that author's can multiple select when they ...
0
votes
0
answers
49
views
Use Custom Field to Display Post Loop
In my custom template I have created a menu which is a row of 10 horizontal tabs. Each tab shows a date which is defined using an ACF datepicker field in the post.
I have also created a custom post ...
0
votes
1
answer
600
views
How to automatically update ACF field value every year?
I'm using ACF in my custom post type and I have 2 numeric fields: one for Birth year and another for Age. I want to update the age field automatically based on the birth year field value. I found out ...
0
votes
1
answer
61
views
ACF number less than comparison not working
I have two ACF fields named as “price” and “reduced_price” now i have another field named as “price_filter” which should be filled with following conditions,
If “price” is greater than “reduced_price”...
0
votes
1
answer
44
views
Best way for managing images of ads banners
I started building a custom theme and I have a lot of ads banner image on different pages of the site. But my concern is about slowing down the site's loading speed.
What is the best way to display ...
0
votes
1
answer
308
views
Best performance for use Custom Field in WP
I started building a custom theme and I might need to have around 10 to 20 custom fields for posts and I need to 30 custom fields for theme options and image ads banner, and thinking if this will ...
1
vote
2
answers
1k
views
Custom Sort Order for Custom Post Type Taxonomy
I have a custom post type - Demo Tours
And for that CPT I created a Custom Taxonomy - Demo Tour Categories.
Each Demo Tour may have one or more category.
Each category has Custom Field - Category ...
3
votes
1
answer
556
views
How to add an ACF only for parent term?
the question here is not for the front-end, it is for the back-end. Is there any way that I can add a custom field using ACF that only displays/shows in parent term.
└── Category
├── Motherboard &...
0
votes
0
answers
22
views
acf field repeater link don't work
I am trying to make an acf repeater field with the link field.
I don't understand why I get an error message:
"Warning: ltrim() expects parameter 1 to be string, array given in"
Here is my ...
-1
votes
1
answer
59
views
Post object GUID adding http:/
In my template I have href="'.$package_link->guid.'"
The resulting HTML is: href="http:/package/download-2023-friday-arrival-monday-departure-weekend-coach-festival-ticket/"
Why ...