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.
...
0
votes
0
answers
11
views
I have design Tab in a Bootstrap 5 in row. And repeat row in ACF. only 1st row tab data is show. other row data off tabcontent appearing display:none
" alt="Therapists Image" class="img-fluid" width="450" height="675" loading="lazy">
<div class="...
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
0
answers
15
views
Help Needed: Issue with Change Permalink on DirectoryPress Listing Pages
I'm encountering a problem with a WordPress plugin I'm developing for DirectoryPress listing pages. The plugin aims to replace the default permalink with a new link specified by users in a custom ...
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
1
answer
26
views
Best Practice for storing aggregate data by date or other criteria?
I'm creating summary descriptions by year. To do this I do update_post_meta on save to set values for word count, image count, external link count.
So for a year archive page I iterate over each post ...
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
0
answers
21
views
wordpress-plugin (widget) that performs a Neaby-search on the openstreetmap-endpoint: around x find y
i am about to create a wordpress-plugin that offers the output of the following data ...
the data of a a Neaby-search:
can we create a quewry that shows up all the schools that are in the near - in ...
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
0
answers
13
views
Add File field in WooCommerce Box office plugin
I'm using WooCommerce Box Office plugin and I want to customize this plugin according to my requirements for example I want to add another field option called 'file' so user can upload files as well ...
0
votes
0
answers
39
views
Woocommerce send metadata to stripe
I am using woocommerce checkout and woocommerce stripe payment plugin, I want to send metadata to stripe from woocommerce order the [billing_vat_number]
Can anyone tell me how its done, it is much ...
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
2
answers
652
views
How to display WordPress Twenty Twenty-Four's built-in custom field in a post (or page)?
WordPress's Twenty Twenty-Four theme makes it possible to add custom fields directly in the editor, but I simply cannot figure out how to display such fields within a post or page (without a plugin).
...
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
26
views
How to filter posts with a wp query by a custom dropdown type field with the magic fields plugin
I have been trying to obtain posts by filtering by two custom fields in a wp query, the problem is that I do not get the expected result, which is that I filter by country and by a value that I am ...
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 ...