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

learn more… | top users | synonyms (2)

0
votes
0answers
35 views

Add custom field for user and search capability for that specific field

I have been looking for a solution to create a custom field for the user profile but I can't find a solution to create a search box (and function) for that specific field, I've tried different plugins ...
1
vote
1answer
21 views

how to display a widget only on a page where the custom field is defined?

I have a set of local pages using a template, I want to display a widget only on pages where I have ticked the custom checkbox field.
0
votes
1answer
39 views

Delete custom meta

My custom meta box correctly saves my file upload. When the user wants to clear the field, they can click delete and I want to delete that meta data of the file url only. How can I assign the meta_id ...
0
votes
1answer
37 views

Best way to use Category & Custom Fields?

I have a website called http://overmvp.com. On this site, there are multiple "Heroes". Each hero has been manually added to the database in a custom table. With this, I need to create a guide. So for ...
0
votes
0answers
36 views

How can I add my ACF field into another plugin's form

How can I add my ACF field into another plugin's form? I tried this but this does not work <div class="input-group"> <label for="deal_title"><?php _e('Deal title', 'wcd'); ?> ...
0
votes
0answers
32 views

Upload Image from Custom Field to Wordpress

What do i really need .. is .. for example: I have Custom Field "image_url". I go to google and search for image. I found one. I manually place the direct image link to my "image_url" custom field. ...
1
vote
1answer
51 views

Cannot save CPT meta box

I swear I have tried every tutorial, and looked through every Stack Overflow thread to figure out what I'm doing wrong... I'm creating a custom wordpress backend for a church that includes a place for ...
0
votes
0answers
36 views

Filter by custom field - dropdown POST not working

I have a custom field "carbz" which has a number value. I am trying to give users a dropdown to select a number and then filter my posts based on the user's input. The current result is returning all ...
0
votes
1answer
127 views

How to create html block to display extra information on woocommerce single product page

i am using this theme for my website, it has tour booking facility with wocommerce, i am using external am using third party booking, they give me link & i simply paste it in each tour (product) ...
1
vote
2answers
26 views

Metabox will not save

I'm trying to create a metabox in a custom post type. When I attempt to insert information into the Listing Price box and update the post, the information is not saved and disappears once the page ...
6
votes
2answers
255 views

Remove Dimension from wp_get_attachment_image

I am having some issue removing the width and height from my attachment images when using wp_get_attachment_image. This is what I am using to display the image <?php echo $image = ...
0
votes
1answer
54 views

Display Content Based on Custom Field Value

I have the following code which is trying to show an image based on the value selected from a custom field in the admin screen. <?php if( get_field('bias') != 'Neutral' ) { ?> <img ...
1
vote
0answers
27 views

Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host

OK, firstly we have done this before using Magento and it worked well, but with WordPress? Well, here is the problem and the plan... The Problem For a few reasons we wish to use a 3rd Party host for ...
0
votes
0answers
27 views

custom field images do not display until page save

Pragmatically i am adding custom field images to my page. The process is I create the post I update to apply a template I add my custom fields which includes an image This is working and i see ...
-2
votes
1answer
45 views

Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]

Hi is it possible to make an extra field in backend, when orders are selected and marked as shipped then an extra field come and where i can select drivers who are responsible for this shipped order ...
-1
votes
1answer
26 views

Get custom post fields and display them

I am using the wpfacet plugin. I have two custom fields: I am trying to display these by the following code: <?php while ( have_posts() ) : the_post(); ?> <span ...
0
votes
1answer
49 views

Pre_get_posts comparison with custom field doesn't work

I got the following code in my functions.php. A couple of months ago it worked (or at least looks like it was), but now it isn't and I don't know what happened. // *************************** // ...
1
vote
0answers
38 views

Add conditional custom option to 'Display name publicly as' dropdown

Besides the built-in "Display name publicly as" options, I would like to add a custom "name + nickname + surname" option to the dropdown. This custom option should be determined by two conditions: ...
0
votes
0answers
10 views

Custom button in post admin page that exports sql query in csv [duplicate]

Is that possible to create a custom button in my post admin page that when every time the admin clicks on it, it will create a csv file in real time for download that will contains that results of an ...
0
votes
0answers
51 views

How to add a dynamic select field in woocommerce product page

I have a custom post type fine_prints with only a title field. I want to add a new field in woocommerce product page. A dynamic select that will show all fine_prints with their id as value. I have ...
0
votes
1answer
46 views

How to check custom fields from functions.php

I'm trying to hide certain menu items based on the custom fields on a page. I could use CSS or a script to hide the items, that's not the problem. What I don't know is how I can check the custom ...
2
votes
1answer
64 views

get_field not displaying my custom field value

I'm asking regarding the ACF plugin (Advanced Custom Fields) I'm working on creating a category group that will add custom fields to the category pages. These are the fields: They seem to work in ...
0
votes
0answers
212 views

Save WooCommerce custom field values without “Updating” Admin Post

I'm creating a website that is on the WooCommerce platform and what I'm essentially trying to do is add another option to the sorting feature of the plugin by using a manually created custom field ...
0
votes
1answer
131 views

Insert image into sub-field with update_post_meta

I found out that I could insert an image into a custom sub-field by just adding the image ID: update_post_meta($post_id, $metafield, 168); But that was a lucky guess - I didn't see this info on the ...
1
vote
0answers
47 views

Default Custom Field Value Automatically Update

I have created a hidden custom field with a php function as its value. Like so -- $value_rating = get_post_meta($Property_Id, 'vr', true); <input type="hidden" name="vr" class="form-control ...
1
vote
1answer
79 views

Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]

I have registered a custom Post Type via register_post_type(), and about 45 Custom Fields via add_meta_box() function, within the theme. Custom Post Type Args: 'labels' => ...
0
votes
1answer
23 views

Save Custom Meta Value on Media Upload

I am looking for an option where a custom meta value will be saved when user uploads an attachment. Lets say I need a meta key _example_meta_key and want to save meta value of this as ex087659bh (It ...
-1
votes
1answer
75 views

Show only first image of multiple image field

I have a custom field called "attachment" and in this field there is more than 1 image (average 10-15 images). When I setup this custom field in a custom column post (for now I used this plugin,), I ...
0
votes
1answer
28 views

Select multiple options in WordPress custom meta filed

I have added select box using meta box in post. I try to select multiple options in select box but did't save multiple option in post meta. Only select last selected option. how to save multiple ...
0
votes
2answers
37 views

Wordpress custom field sorting, weird behavior: the latest post is at the end

I am using Wordpress with Advanced Custom Fields. I have a custom post called "event" with a custom field "date" (I have added the field through ACF). The date field is formatted in the following way: ...
2
votes
1answer
37 views

Call a custom field in an audio shortcode?

I'm attempting to call a custom field in an audio shortcode. The field I'm calling, enclosure, defines MP3 files that are associated with my respective posts. I'm using the PHP template editor in ...
0
votes
1answer
20 views

Delete custom post type metadata without deleting the post in admin area

I'm working on a plugin for a client and they need the ability to attach a couple of PDFs to a post as metadata. The client will need to occasionally update these attachments but without deleting the ...
0
votes
0answers
71 views

Add Custom Fields To Variable Products WooCommerce

I am working with the most recent version of WP, AVADA THEME, and WooCommerce. I have variable products which require the shopper to select COLOR, SIZE, and MATERIAL to dial down to the correct ...
0
votes
0answers
29 views

Find page metadata in database

I want to insert metadata to custom fields (from "advanced custom fields" plugin) manually (with wp_update_post_meta). I need to know how the meta value strings look like so I can insert this kind ...
0
votes
1answer
55 views

Passing the custom field values in the wp_get_current_user array function

How to pass the custom field values which were stored while creating a new user into the wp_get_current_user array function When I call the wp_get_current_user() function the result which I found is ...
0
votes
1answer
54 views

Retrieve value of a category's custom field

Using the 'Advanced custom fields' plugin I have added a field to every post category that is called 'color' and it works just fine. Now inside the loop I need to retrieve the value of the 'color' ...
1
vote
1answer
39 views

Custom fields not getting saved in the databse when added to the add new user profile page

I want to save the custom field values in the wp-users table. Do I have to create the fields(client and user_groups) in the table or it gets created automatically when the data gets saved into the ...
4
votes
1answer
222 views

How to remove Profile Picture section or the message “You can change your profile picture on Gravatar.”

How to remove profile picture section from WordPress admin panel or the link "You can change your profile picture on Gravatar." add_action('admin_footer-profile.php', 'remove_profile_fields'); ...
0
votes
2answers
184 views

How do I implement custom fields without using any plugins?

I am trying to create a member directory and using a custom post type members. I am familiar on how to use the ACF plugin but is there any methods on how to associate a custom field for a specific ...
1
vote
0answers
17 views

Show values of custom post meta on 'Add new post' page?

I am developing a website in which I am giving my users a separate profile. Their profile includes a dynamic slider. I made a custom post type named 'Slider' and added all images using: ...
0
votes
0answers
13 views

How to add all the number given in field of metabox of wordpress?

I have added a field called number of question in post meta box. THe feild name is no_of_question. To get the number of question i can do echo get_post_meta($post->ID, $field['no_of_question'], ...
0
votes
0answers
34 views

Save custom post data outside of default post form

I have some text inputs in my post editing screen. I can't have them in the standard metaboxes and they are outside of the default post form. <form name="post" id="post" action="post.php"> I ...
1
vote
1answer
36 views

custom-meta-box checkboxes from loop won't save

I tried to create a custom meta box with checkboxes, generated from a loop of a custom-post-type. I found this example here on WP Development, but I can not figure out why the boxes won't save. My ...
1
vote
1answer
53 views

Calculate all custom field values in the post loop

I have a custom post type named 'ordered_food' and the custom field named 'price', Alhough I can print out all the values, I don't know how to plus and calculate the total price. Because it's already ...
0
votes
0answers
23 views

Create plugin to modify custom field values

I've developed a plugin which outputs a list of events into a widget. To display event details I created a generic page with shortcodes and the plugin populates shortcodes with event details. This ...
0
votes
1answer
63 views

`update_post_meta` not working anymore

Originally my goal was to compress my code, now after I altered it, it is not working anymore. I can't figure out why. I simplified it a bit, now this code should save one date entered in the backend ...
0
votes
1answer
197 views

Woocommerce frontend edit custom fields

i have add 4 custom fields in the checkout page (in functions.php ) Now i show the value in the Order page with get_post_meta( $order->id, 'My Field', true ) I need that the customer can edit ...
0
votes
1answer
103 views

Display WP-Types custom fields in post [closed]

I have a WooCommerce website where on products I added some custom fields using WP-Types plugin. The website has a section "News", which basically is a blog. How can I insert wanted products into a ...
0
votes
2answers
108 views

Add multiple meta keys to a post at once

I figured how to add an input value as a meta key value to a new post from a frontend post form (thanks to @thedeadmedic), but I can't figure how to add two or more meta keys at once. Is this possible ...
0
votes
1answer
74 views

display custom media folders to wordpress media popup

I have plugin "Maxgalleria Media Library Plus" in my wordpress site, where I can organize my images in different folders.When I look via FTP, in the uploads directory there are all folders I have ...