Questions tagged [custom-field]

Custom Fields are fields that can hold arbitrary extra information known as meta-data.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Replicate value of one ACF field into another

I have a CPT that uses custom fields [created via ACF]. One of them is a repeater type. It works. Among subfields, I have an input field called party_time. In many cases party_time values has format ...
0
votes
0answers
13 views

Creating custom form inside custom post type item

I have made a custom post type in my project. Now when this custom post type is being created in wp-admin i want to show a form. This form should also be there in Edit post. This form dynamically ...
0
votes
1answer
14 views

Sort custom post type by most current date picker

I'm trying to sort custom post type made with ACF plugin by most current date. Ideally future most current post should be first. Currently, I'm sorting by date, which gives me the earliest post as the ...
0
votes
2answers
21 views

Make custom post types using ACF

So I'm using the Genesis Framework with a theme provided by them, and I just implemented the Advanced Custom Fields plugin. What's the best way to create custom post types? I want to have a 'People' ...
-1
votes
0answers
17 views

Hierarchical Menu for Catalog Site

I'm new to Wordpress and want to make a catalog site with a menu system like HomeDepot.com, Target.com, Walmart.com, etc. but without the option to purchase items. I have created a Custom Post Type ...
0
votes
0answers
10 views

Filtering get_terms loop by custom fields & custom taxonomy

On specific page I’m displaying posts from my CPT („opencourses”). Posts from this specific CPT are grouped by custom taxonomy („kategoria”) - this piece of code works. At the same page I have four ...
0
votes
1answer
46 views

What Wordpress “technology” would I use if I wanted subscribers to be able to mark pages with characteristics and notes?

I'm creating a site with a large number of pages. I would like logged in users to be able to write personal notes at the end of a page that could be compiled into a personal "notebook." So like ...
0
votes
1answer
29 views

Displaying custom fields for custom post type generate with Custom Post Type UI Plugin

First, I am using default theme twentyseventeen. I've used plugin Custom Post Type UI to create a new post type called film_kernal For that post type I have created some custom fields, one of which ...
1
vote
1answer
42 views

Custom search with Custom Fields in WP REST API?

Good morning! Is there any way to do searches with the WordPress REST API with custom fields, being more specific, I have some custom posts, with a custom field of a specific date, and I want to do a ...
0
votes
0answers
21 views

How to create a gallery custom field for WordPress post?

I would like to create a custom field for WP posts that behaves like a Gallery Block (I can upload or choose photos from Media Library, and save data to this field). So that, on the frontend (in the ...
0
votes
0answers
12 views

Custom Block Gallery in the InspectorControls

i have a problem with the component MediaUpload. Actually i want the standard Gallery Media on the side. But it don't works well. If I remove the attribute "addToGaller={true}" then i can add a ...
0
votes
0answers
11 views

Wp_termmeta may be corrupted? Change on database doesn't reflect on website

By updating a plugin (ACF Pro) while there were permission errors on the server, a strange thing happened that I can't explain to myself in any way. Specifically, the wp_termmeta table, in which, ...
0
votes
2answers
22 views

Find a way to retrive data updated through metabox plugin to web page

I developed a customer metabox plugin to save user details to db and retrieve them back to Contact Us Page in my website. But I searched a way to retrieve the data to contact us page and I couldn't ...
0
votes
1answer
120 views

frontend submit post jQuery clone row won't save

Why the cloned value won't save in DB ? It's working fine for the first row (not the cloned one) but when I add new value with jQuery(.clone), new added value won't save... jQuery $('#add-embed').on(...
0
votes
2answers
20 views

Sort by an ACF field in a tax_query

I do not find the solution which must surely be surely simple. (I'm new to WP) I have an ACF field named "partners_order". I would like to sort it in ascending order (ASC) here's what i tried <?...
0
votes
1answer
17 views

Values entered in a meta box aren't saved

I developed a custom metabox plugin and linked it to contact us page in order to save to DB the phone number, email and working hours as user input. The thing values I entered are not save into DB. ...
0
votes
1answer
36 views

Remove entire [$key] from array stored in custom field using Ajax - unset($array[$key]); not working

I'm looking to use Ajax to delete the key [1] from the following array which is stored in a custom user field and then re-save it... I am trying to do this by using unset($array[$key]) then saving ...
0
votes
0answers
8 views

Query BETWEEN timestamps (today and in a custom field)

I am using wordpress 5.3.2 and advanced custom fields pro Version 5.8.7. My custom field is called timestamp. See below my ACF configuration: I tried to query the db like the following: ...
1
vote
0answers
36 views

Show custom post type relationships by taxonomy

I have two custom post types product and review. The product have a custom taxonomy fruits with terms apples and bananas. All review has a custom field that is a relationship to product, so I can ...
0
votes
0answers
11 views

How can I 'check' the “custom fields” box from the Screen Options?

I am using the latest version of WordPress v5.3.2. I am trying to find out a way [through Code] to enable 'Custom Fields' by default, when on the Add/Edit Post/Page pages, at least for the one's ...
0
votes
1answer
24 views

How to access repeater field of a custom field?

I have a custom post type called donation_group it has a custom_field called donate_pages which is a repeater field. This donate_pages has again fields called donation_object and amount_received. I ...
0
votes
0answers
12 views

Adding bank withdrawal form fields on vendor dashboard in dokan

I want to add bank withdrawal form fields on vendor dashboard in dokan , which i have partially achieved with the help from this ref link. Now all i want to do is to display the field data that i ...
0
votes
0answers
13 views

How to add extra input fields to paid members subscription's form using the hook in functions.php?

I have to insert from file functions.php a date field in a front-end form that saves the data also in the backend. The plugin I used for the form is paid members subscriptions
0
votes
1answer
20 views

Creating an image from a custom field

I'm working on the theme creation in WordPress. When I try to customize hero image(using advance custom plugin) in my theme it doesn't appears and i gave image path in css file. Here some code of ...
0
votes
0answers
10 views

echo a list of meta-keys used in specific Custom Field post type

I have a few different post types, and i need to create a filter list for each one. Ideally this would use the 'meta_key' => 'departing_from' created by the customer, So it would only show the ...
0
votes
2answers
29 views

Woocommerce Retrieving custom field value from orders

I am trying to get a specific meta value from all of a customer's orders and simply echo them to the Downloads page within My Account. This is what I have so far, but unable to get $skey to retrieve ...
0
votes
0answers
33 views

Filter posts by their related field's custom field

I have two post types named 'programs' and 'universities', where the programs are connected to their respective universities. I want to filter programs by university's custom fields such as ranking ...
0
votes
3answers
71 views

Display all custom meta field values from the database using ACF Repeater

I'm working on a personal project which includes multiple custom fields (created via ACF). A few of them are repeater types. I want to to display 3 arrays/blocks of those repeater subfield values. ...
0
votes
0answers
20 views

Displaying data from custom fields on a specific category page

I created custom fields on my functions.php page and use the values from these fields on a template-parts page (for activities). This works fine. I would like to have a page for each category showing ...
1
vote
0answers
30 views

get_post_meta not working on publishing

I'm building a notification system for a mobile app on Wordpress using One Signal. Now Supposed to when I publish a new post sends a notification to all my Application devices. The problem is I can'...
1
vote
0answers
51 views

meta_query BETWEEN, but the range is stored in the custom field

I've seen plenty of samples of using meta_query to find if the value is between a range, where the range looks something like this: $meta_query_args = [ 'key' => "custom_field", 'value' =...
1
vote
0answers
18 views

auto populate list of questions if user select a category xyz

I have a custom post type job with a category of different type. each type of job has it's own list of questions that I want user to answer. is there a plugin that i can use to achieve something like ...
1
vote
0answers
37 views

How to add an extra button on woocommerce shop page and use it to send the product info with image in a mail? [closed]

I want an extra button beside "add to cart" which will open a form with only email field and after submitting, it will share product name, image, info with branding and backlink to the webpage in a ...
0
votes
0answers
19 views

Add extra label to wordpress post and view it on posts-> all posts

i am new to this and not sure where to begin. i would like to add a custom "hidden field" on each post which is an email field - only admins can see when editing the post. then when i view all the ...
1
vote
1answer
52 views

Is there a simpler version of WP Media?

I'm developing a plugin where users need to be able to upload an image (a payment receipt) to a custom user field. At the time, I'm using a code I found here Extra User Profile Field Upload File / ...
1
vote
0answers
10 views

is there a way to link one of the field in ACF field group, to a field in a media attachment page? [closed]

so i created a post type that will allow user to enter Basic Information such as patient id and full name. and since they're allowed to upload pictures in the media page, i would like the user to be ...
2
votes
0answers
21 views

WooCommerce conditional required checkout fields [closed]

I would like to change the required billing fields based on a custom filed that I've added: add_action( 'woocommerce_billing_fields', 'custom_woocommerce_billing_fields' ); function ...
1
vote
1answer
30 views

Adding dropdown select meta box to custom post type - seems restAPI is interfering

I have a custom post type, call it topic. It is from BBPress, but this isn't a BBPress question. I also have a post type lessontopic. I added a meta box to BBPress so that I can choose an associated ...
1
vote
0answers
14 views

Product Custom Fields with HTML and JS

I have a custom textarea filed for the product page. woocommerce_wp_textarea_input( array( 'id' => '_custom_product_calc', 'label' => __('Test', 'woocommerce') ) ); $...
1
vote
0answers
7 views

How to add posts through CSV or excel file in a PHP file

I have created a page of baby names. Created it's custom fields. Added names of different religions through custom fields. Is there any way out to import names from CSV or excel file,?
0
votes
0answers
19 views

How to display a table based on data from a custom content type with custom fields

I have created a new content type called "casinos" with the following custom fields: Bonus Offer Rating Score Aff Link Casino logo I created 10 posts of "casino" type which contains information ...
1
vote
1answer
10 views

Order RSS content by an advanced custom field value

I have created a custom post-type called "event". For this custom post-type I created an advanced custom field called "event_date". Now I am trying to display the list of my events in a RSS feed. ...
1
vote
1answer
15 views

I am trying to display information from a custom table from my wordpress users pages

to preface this I know my way around a computer but I'm no coder by any means. I have a site where users can purchase points/credits to be used for a service on the site. Each customer has their ...
0
votes
0answers
11 views

Problem Advanced Custom Fields PRO

I added it but the badges don't appear I hope to help me solve the problem I'd like to show badges like this I tried but couldn't echo '<div class="wub-badges-wrapper">'; $badges = ...
0
votes
0answers
12 views

How i will add search option with my Custom Meta Box?

I want to add a search option with my custom meta box and also I want to confirm the user has select a value before save the post. function wporg_add_custom_box(){ $screens = ['product',...
0
votes
0answers
13 views

Is there a way to set up an image custom field to function as a category field with a predefined photo bank?

I would like to know how can I create a predefined image bank by using Jetengine taxonomy or any other way/plugin. My main purpose is to use Forminator plugin post create template so that the user on ...
0
votes
1answer
27 views

Post Click Redirect to Custom URL instead of Single Post Page

I have a custom post type called "articles". When an article link is clicked, I want to redirect them to custom URL(this URL is saved in the database as custom field) instead of the single page. How ...
1
vote
0answers
19 views

Add new image block, set default class name and update it using Javascript

I am trying to programmatically set a default class on an image block, which is applied without the user manually adding it via the 'Additional CSS' field. I have tried applying a default style on ...
1
vote
1answer
35 views

Firing schema via code in functions.php doesn't work

I've been banging my head against the wall trying to get schema figured out, so if anyone can help me, I'd appreciate it greatly. I'm trying to manually add my schema via custom fields, and then ...
0
votes
0answers
21 views

search based on custom field value

The default search functionality in wp searches only the content of the posts/pages. But I have categories which have posts with custom fields (I have used advanced custom field plugin for it). How to ...