All Questions
Tagged with custom-field custom-post-types
862
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.
...
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
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 ...
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.
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
17
views
custom post type with metabox custom fields
how to make meta custom fields in custom post type name jobs_board_cpt , I am using boilerplate ?
public function jobs_board_cpt() {
$labels = array(
'name' => ...
1
vote
2
answers
29
views
add_post_meta unique value for all custom posts
I have a custom post type "Propietario" with several custom fields, and 3 of them: "dni", "email" and "phone" I need unique for all Propietario Post types. This ...
0
votes
1
answer
27
views
Custom Field in Page Title
I need to show a custom Field in a title (CPT) I have this code
function wpse_224340_document_title($title){
global $post; // make sure the post object is available to us
if(is_singular('mec-...
0
votes
1
answer
41
views
How to create alias / synonym links to existing posts
I have a directory type website, where each post is a word definition. I want to set up synonyms of these words for audiences from different geographies.
For example, let’s say I have a post for “...
0
votes
0
answers
23
views
Need some suggestions with Relationship fields and CPT/ACF
I am tasked with creating a Student/Teacher Portal where among other things, I need a way to build a way for Admins to assign Teacher with Students based upon Subject and Age group (Age for students). ...
1
vote
0
answers
19
views
edit index custom post type page with elementor or other
i have a custom post type in wordpress like book. i can edit single pages template with add single-book.php file and edit archive pages template with archive-book.php file.
i know main page of this ...
1
vote
1
answer
301
views
Can't expose custom field to REST API
As far as I can tell, the following code should make the video custom field of my CPT project available through REST API. Yet the custom field is still not exposed.
Why not?
add_action('rest_api_init',...
0
votes
0
answers
13
views
Category display using conditions
I have a custom post type(events) created and has taxonomy(event-categories) with parent and child categories.
Since im not good in coding, i will try to understand all the help from here.
So what im ...
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 ...