Questions tagged [custom-field]
Custom Fields are fields that can hold arbitrary extra information known as meta-data.
3,717
questions
0
votes
1
answer
12
views
Creating subpages for each custom post type
I have a custom post type (created with ACF), called shops.
Each shop has data for example about working hours, which are separated in each custom field (Monday, Tuesday, wednesday etc.).
I have all ...
0
votes
2
answers
66
views
fetch from an external api call and display results in page
I have placed my external api call inside the functions.php file in the server and I created a shortcode for the api call.
I'm familiar with React and I was expecting Wordpress to be somewhat similar.
...
0
votes
1
answer
37
views
What is the easiest way to create a custom field archive?
So, here is the issue:
I am using a plugin named User Submitted Posts, and it works great on its part. However, I still want to have that user content page the Twenty Twenty Four theme has by default, ...
0
votes
0
answers
39
views
I am trying to add form using ACF plugin and acf_form() function, but my user fields dont show up properly
I am new at wordpress, so i am very sorry if this is a stupid question, but anyway...
I am trying to create form on frontend to add my custom post types with custom fields which i created using ACF ...
0
votes
0
answers
18
views
How to hide a field on the frontend of a Buddypress page by field ID according to user roles and login status?
Not sure if this is the right place to post this or if I should use stack overflow. I can post it elsewhere if needed.
I am not a developer. I have very basic understanding of CSS classes (which is ...
1
vote
1
answer
30
views
Many CPT is conflicting of the custom date
How can I fix the date with multiple Wordpress CPT date? An example, the custom post "John The Man" on "Canada" CPT the birthday is "Thursday 05 May 1960". How can I ...
0
votes
0
answers
36
views
Custom fields - get_post_meta giving null
I have in the heder.php the following snippet:
<?php
$schema = get_post_meta(get_the_ID(), 'schema', true);
if (!empty($schema)) {
echo $schema;
}
?>
And in some posts I have the custom ...
0
votes
1
answer
26
views
WP_Query not using relation key as expected and not producing any results
I have created a custom post type service-provider with custom taxonomies region and service-category - By itself, this search works as expected BUT I want to also search on an ACF field.
I have an ...
1
vote
0
answers
66
views
How to conditionally change template based on ACF field in WordPress 6.5 with FSE theme?
I'm currently working with WordPress 6.5 and using a Full Site Editor (FSE) theme. I need to dynamically change the template of a page based on the value of an Advanced Custom Fields (ACF) custom ...
0
votes
1
answer
10
views
Custom fields empty after refreshing page
I have added some custom fields to the Gutenberg editor, the purpose is getting these custom fields loaded in the custom-post-type.
Thats is all working, I was able to get the custom-fields in the ...
0
votes
0
answers
23
views
Problem with custom user fields default value and retrieval
I created 2 custom fields for users on my site, a Company name and a checkbox for whether a user has download access or not. Here is the snippet for the functionality:
add_action( 'edit_user_profile', ...
0
votes
2
answers
41
views
how to compare date meta value in jet smart filter Date query?
trying to compare meta value between today and next 7 days, tried this in value field %today%, %str_to_time|+ 1 week%
but its not working.
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 ...
1
vote
0
answers
30
views
Only allow users (that are not admins) to edit a specific post
I am using a ACF field on the user profile.php to assign a post id to a user. The users need to be able to receive the capability to edit this post, but only this post. They should not be allowed to ...
0
votes
0
answers
13
views
Issue using form in Google app in mobile
I have a contact form on my website, and I'm utilizing Contact Form 7 (CF7) plugin for it. However, when I fill out the form using the Google app on my mobile device, the page seems to reload somehow.
...