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

learn more… | top users | synonyms (2)

1
vote
1answer
7 views

How can I create a list of page titles from custom meta values?

I want to associate pages with other pages by using custom meta values. For one page, I want to associate two other pages, so I create a custom meta value with the key Procedure and the value of the ...
0
votes
0answers
14 views

custom field shows also images of other posts in lightbox

function wp_list_mine_posts( $wp_query_obj ) { // Front end, do nothing if( !is_admin() ) return; global $current_user, $pagenow; wp_get_current_user(); // http://php.net/...
0
votes
1answer
14 views

Adding fields to attachment - only shows when inserting new attachments

I'd like to add two custom text fields for image attachments to posts (images inserted into the content of a post). Second I'd also like to remote some of the default fields like caption and ...
1
vote
2answers
24 views

post meta getting deleted on save

I'm having an issue saving post meta on all post types, both default and custom. I'm hooking in to save_post to run my function, and what's happening is that the post meta gets added, but then ...
0
votes
1answer
15 views

How to make Meta Query case sensitive?

I have a meta query similar to: $posts = new WP_Query( 'post_type=article&meta_key=kln_aid&meta_value=' . $aid ); where I need aid to be case-sensitive. Is that possible via Meta Query?
0
votes
1answer
19 views

Singleton Custom Field (Meta Box)

How do I create a custom meta box for posts which have a boolean data type and can be true only for one post. I want it to be falsified for all other posts when it's set on one post. Is there a hook ...
-1
votes
0answers
16 views

Advanced Custom Fields in Footer

I've been trying to call an ACF field from a specific page into my footer.php, but it doesn't seem to be working as it usually does when I call it on a template page. After some reading, it appears ...
0
votes
0answers
11 views

Order by string custom field not working

I want to sort posts by a custom field but I don't know why the following query doesn't work (returns the posts in the default order): $args = array( 'post_type' => 'proyectos', '...
1
vote
0answers
19 views

Button inside Custom Meta Box triggering the Update Button

I have a custom meta button that adds additional custom meta fields inside the custom meta box. This meta box, in particular, gives me a choice to enter a particular skill and rate my own ...
0
votes
0answers
11 views

Add image before post title using Advanced Custom Fields?

I'm desperately trying to add icons before post titles using the Advanced Custom Fields plugin. My custom field is called "category_icon". I've tried setting the Return Value to both Image Object and ...
0
votes
0answers
8 views

Sort posts by specific node in a custom meta array

I have posts being called in a custom loop and sorted by a custom meta key using orderby. All of that is working fine, except that my meta keys contain arrays. I would like to sort the posts by the ...
0
votes
1answer
14 views

Finding which Custom Fields are being displayed on the page

I'm trying to find a way in WordPress to figure out which of the custom fields for a post or page are actually being displayed on the HTML output of the page and which are not. Using the function ...
-5
votes
0answers
25 views

I need separate pages for each member [on hold]

Hi: I'm looking for a plugin that will create a separate page for each member. Once they create an account and login their separate and unique page created automatically. Each client has their own ...
-3
votes
0answers
16 views

How do I add price underneath product for information purposes only?

I am using jigoshop and I would like add 2 price options to my products. I only wish to display a price on the products for information purposes. I don't want to have an active shopping cart. So, for ...
0
votes
0answers
19 views

Rewrite rule with a custom post type and a custom field

I'm creating a website that will display, from a search by location, a list of singer. If we click on a singer I will have to display that singer with the city inside the url. Here are the two ...
1
vote
2answers
29 views

How can I make existing custom fields easier to edit/add in my theme?

A Wordpress theme I have authored uses Custom Fields on posts. There are about 5 or 6 custom fields to set when authoring a post, and my users have a hard time remembering what to enter for the name ...
1
vote
1answer
18 views

Move value of one custom field to another

I've one custom field named as "video" and I want to copy the custom field value to my another custom field named as "theme2035_embed." I could do it manually, but since I have more than 2500 posts ...
-2
votes
0answers
14 views

Posts 2 Posts Plugin Guidance [closed]

I'm making a doctor portal clinic website in which the doctor will have the WordPress dashboard in which he will be able to add the patient's details, prescription, etc For Patients and Prescriptions ...
1
vote
1answer
37 views

Why is my Custom Meta Box Field Inputs NOT saving?

I have a custom post type labelled 'web_design' and I want my 'web_design' posts to have the following custom fields: 1. 'client' - Client Name 2. 'exlink' - External Link 3. 'datefin' - Date Finished ...
0
votes
1answer
51 views

Comments form custom fields order

I'm trying to add 5 custom fields to comment form. Just use 2 hooks to display custom fields after default fields - 'comment_form_logged_in_after' and 'comment_form_after_fields' like this: function ...
0
votes
2answers
24 views

How to update user profile custom fields

I have created custom fields on my registration form, such as 'telephone', using Theme My Login. I have found a way to make them appear in the backend (on the User page) but I can't update those ...
-2
votes
0answers
13 views

Custom Metabox text_money without decimal places

How to remove the decimal places of text_money type custom metabox, for example changing $30.00 to $30?
0
votes
2answers
25 views

Display custom field from the front page on another page

so I am hoping to retrieve a custom field that is already displayed on the "front-page.php" template on an another page.php template of my website. I know how to do that with the post-id way, but what ...
-2
votes
0answers
13 views

Repeatable columns (not rows)

I have searched, but have found no answers. I am trying to achieve repeatable columns in WordPress using custom meta data, not just a table in a post for example. I need this in order to perform some ...
0
votes
1answer
18 views

Can I save post meta programatically without setting metaboxes?

I want to know if is it required to have metaboxes set to save post meta into a custom post type. I have a couple of pages where I save metadata into a post programatically, using add_post_meta, but ...
-3
votes
0answers
32 views

Create like button from scratch

Would someone kindly give me a pointer on direction to take to create a simple test data unique to each user that can be updated by other user from front end and saved in database. I know it sounds ...
-1
votes
0answers
19 views

Custom Query With Meta Value

I want to get my posts from the "cafe" post type with this filter, but it doesn't work. This is my custom query: $args = array( 'post_type' => 'cafe', 'meta_query' => array( ...
0
votes
0answers
9 views

Save and return input type is text on custom post type

I've got the following problem, and have been looking for way too long to solve it. I've made my custom post type, and custom taxanomies, and those all work great. But now I want a custom fields to ...
-2
votes
0answers
18 views

ADD JS/HTML in the homepage

I am new to WordPress and haveing some difficulties. I need to add some javascript and HTML to my main homepage. My website is this Go the tab " Book a Cab " And there I need to show my custom form ...
0
votes
0answers
14 views

How to assign Capabilities to custom field

I have created a plugin in in which I have created post types and custom taxonomy and set custom capabilities for this Here is code for post type function create_product() { register_post_type( '...
0
votes
1answer
30 views

Metabox saving values

I have 2 metaboxes ("prices" and "dates") on my custom post type ("kvkoolitus") edit page. As I thought right, wordpress saves values only from first rendered metabox. Each metabox code stored in ...
-1
votes
0answers
26 views

How to add and Save custom field in category box on add or edit post

When the user clicks on Add category link two fields display category name and parent category I want a custom field there on both new or edit post page. Please check the image. Any help will be ...
-1
votes
0answers
13 views

Adding read-only field to WooCommerce orders [closed]

I need to add a custom field to orders, named "shipping", where I would be able to enter some information about shipping date. It should be read-only for users, meaning that they would see this field ...
0
votes
0answers
14 views

Assign different custom fields to different categories when listing

I am currently developing a website for gemstone trade. Every gemstone can be characterized by carat weight, color and so on. The carat weight is a universal standard for every gemstone but not the ...
0
votes
0answers
20 views

How can I get post meta data (custom field) from within a custom wordpress action hook?

I have a custom hook in my theme which is set up like this: do_action('my_custom_hook'); That code is in my header.php file and outside of the main loop. I have a call to this hook like so in my ...
-2
votes
1answer
17 views

ACF: Not displaying ACF data from another post

I'm trying to pull data from an ACF module in another post and display it on a page. I've followed (https://www.advancedcustomfields.com/resources/how-to-get-values-from-another-post/) and triple ...
0
votes
1answer
31 views

Excluding posts with certain value of meta_key keeping posts without that meta_key

There are solutions for this problem, but what I could found, all of them are from long ago. So I am looking for a solution (if there is any) considering recent updates. I have a meta key wpse_city, ...
1
vote
0answers
21 views

Filter multiple custom fields Values with Check boxes

I create check boxes with name of custom field value. Here is 2 custom fields and every field have 2 type of values. need to show filter result of selected boxes?? every custom field have two type ...
0
votes
0answers
12 views

Delete single meta row from multiple meta rows under same key of a post

I'm storing meta data for my posts using a single key, so it's creating multiple meta data. <?php $data = array( 'user_id' => $user_id, 'message' => $message ); add_post_meta( $post_id, '...
0
votes
1answer
33 views

Copy custom field value to post title

I used the code found here. However, that does not update the title field until you open the post and hit Update button both via the back and front-end. I tried changing "save-post" hook with "...
-2
votes
1answer
48 views

Get Posts ordered by a date custom meta field

I have created a meta field for a custom post type. This is a date field that will always be YYYY-MM-DD. There could be 100s of posts so i cant query them all and sort afterwards. I need to be able to ...
3
votes
1answer
37 views

Sorting posts by multiple values, combined

In this image, 1. The Black letters are default post titles 2. The number before the 'of' is a custom field. 3. The number after the year is the post's published year Now I want to sort this ...
0
votes
1answer
25 views

Custom field as featured image caption

The problem is: My featured image caption is not being shown since it is (still) stored in a custom field (called (wpcf-bildunterschrift). I can easily access the customfield, but not the field that ...
1
vote
1answer
34 views

UPDATE on SELECT results. A SQL query to swap Author with Meta Box value

I inherited a project where, for some reason, the previous developer make a custom post type for authors and a custom select listing all those authors cpt titles in the post edit screen. This led to a ...
0
votes
1answer
29 views

DIsplaying URL of custom field in last post of certain taxonomy && post type

So, I need to echo the URL of a custom field from the last post published in a certain post type and with a particular taxonomy. This code so far works OK, but even that numberposts = 1, $...
0
votes
1answer
22 views

How to add wordpress plugins in along with my standalone theme

I am developing my own custom WordPress theme but in my custom theme i am using some of plugins. Actually i am adding some custom field plugin to customize the text on my theme. My problem is that ...
1
vote
0answers
35 views

Get registered custom fields or post meta even if empty

I would like to be able to get all registered custom fields or post meta for a given post. The limitation I am facing is that the use of either get_post_meta or get_post_custom returns an array of ...
-3
votes
0answers
16 views

How to integrating Front-End Submission (EDD) with Visualizer plugin?

I have problem to integrating or enabling the WP Visualizer plugin into Front-End Submission (FES) addon from Easy Digital Downloads (EDD). I'm trying to find out the add-on documentation or forum ...
0
votes
0answers
24 views

Save custom field as 0000-00-00 00:00:00 (date) to meta_value in Wordpress

When I create a custom post type with custom field, how do I write to meta_value in database in int (0000-00-00 00:00:00) format instead of unixtimestamp?
-3
votes
1answer
65 views

Advanced Custom Fields Show PHP in Text Areas

I recently installed and configured my ACF fields. However, I found out that when I include PHP (ex. <?php the_field('field_name');?>) in a custom field on the admin panel, the PHP only shows up ...