Questions tagged [custom-field]
Custom Fields are fields that can hold arbitrary extra information known as meta-data.
3,715 questions
0 votes
1 answer
77 views
How do I consolidate multiple variables into an array? [closed]
All of this code works perfectly, if all of the acf fields have no data, the section isn't loaded. My problem is, the initial variable setup regarding $scheduleEventGroup1 and $scheduleEventGroup2 is ...
0 votes
1 answer
104 views
single data base field gets ignored in translation
I have a custom theme (Novo) installed and it provides a field "short description" used in the overview for blog posts. I create a blog post in English and a translation in German. Both ...
0 votes
0 answers
37 views
How to adjust meta value to UTC time in WP Query
I'm displaying three lists of events on my site: past events, current events, and future events. The lists are sorted by a custom date time field. The code I have is currently working, but Wordpress ...
0 votes
0 answers
23 views
How to make a drop down panel in the editor that writes to the post's custom fields without updating the post(wp 5.8)
I want a sidebar panel in the post editor where a user can pick an assignee and an editor for a post. The post will be populated by a list of every user on the site. When the page loads, I want the ...
0 votes
0 answers
54 views
Order by multiple custom fields within woocommerce hook for catalog ordering (woocommerce_get_catalog_ordering_args)
I'm still learning and have looked at many articles on this site (like this one) and others (my favorite: here), including WP documentation and woocommerce documentation. I'm trying to (a) use a ...
0 votes
0 answers
26 views
Scheduled Posts in WordPress do not retain the value of a Custom Field
When I create a post in WordPress and set a custom (meta) field it saves it correctly. However if I schedule it, when it publishes it the value is lost.
0 votes
0 answers
47 views
Get_Field for Taxonomy Returns Error, ID, or Nothing ACF
I’m using the classic editor and have disabled Gutenberg blocks and global styles. I’ve created a custom post type named Resources, for which I’ve also created an archive archive-resources.php. I’ve ...
0 votes
0 answers
24 views
How to order a Custom Fields in admin panel
I have some custom fields in admin panel, some filled and some is empty. I want to order by first all with values and the rest is will be empty fields. How can I do this ?
0 votes
0 answers
29 views
ACF pro auto populated field is not saving
I have auto-generated a text field value from another field in ACF pro. The field is showing the data but I can't use it anywhere. I assume it doesn't save or update. Here are my code function ...
0 votes
1 answer
33 views
Query 'orderby' when there are multiple values for the same meta_key
I'm trying to create a custom sortable admin column for a custom post type that contains a "repeater" field. The plugin I'm using for this field saves the values as separate entries in the ...
0 votes
0 answers
36 views
Inequality based on today's date and SCF date not working
I have the following custom query and I would like to exclude any posts whose SCF dates are in the past. I have checked that the custom date of the post is returned in the Ymd format and it is. I can ...
0 votes
0 answers
48 views
why is my plugin code not saving the meta field to the database
I'm trying to write a plugin that will pull pdfs from a set URL, but the meta field isn't saving. Here is my code: <?php /* Plugin Name: Custom PDF Upload Plugin URI: http://example.com/ ...
0 votes
1 answer
203 views
Allow HTML in custom taxonomy description, and show it on front end
Sorry I'm quite new at coding, and also working with WordPress and ACF, and I'm trying my best but I can't figure this out: I'm trying to load my taxonomy description in rich text. Currently I'm using ...
2 votes
1 answer
50 views
Search by Custom Field content OR post id via the WordPress Dashboard
This codes works fine for searching by custom field content, but could someone help me to modify it so I can search by post id instead of one of the three custom fields? I will only ever search for ...
0 votes
1 answer
52 views
Filtering output by two custom fields using posts_where and add_rewrite_rule
I'm using two custom fields in wordpress to filter a persons database (custom taxonomy = persons) by gender and age. I would like the domain path name to look like that: domain.com/persons/women/...