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

learn more… | top users | synonyms (2)

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
1answer
8 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
1answer
2k views

How to add upload field in a custom taxonomy?

I have a custom taxonomy and I want to add a custom field inside , OK that's seems to be easy but the hardest part is when I want to add a file input type the enctype="multipart/form-data" I ...
0
votes
0answers
15 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/...
1
vote
2answers
25 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
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 ...
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
712 views

get posts where a custom field contains a text

I have a custom field where the value contains a comma separated list of items (like: test1,test2,test3), now I want to retrieve posts where the field contains one of the values, I have: $query = ...
-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
1answer
2k views

Let users upload image(s) to the post from front end

I want to enable logged in users (Wordpress) to submit posts from front end (among with other data). My form is working great, I add custom post meta data which I later display on custom post page. ...
1
vote
1answer
46 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
7answers
4k views

Preserving line breaks when saving and displaying custom fields data

I'm collecting data via a form plugin and saving that data in form of a post with several custom fields. I then display the content of the post and the custom fields on my post template using... if( ...
0
votes
0answers
12 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 ...
1
vote
2answers
323 views

Display custom post on home page based on a metabox selection

I am trying to display an post to my home page based on a selection. What I mean is in the backend I have a custom post that has a metabox labeled Assign to Home with a drop down that has a selection ...
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 ...
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 ...
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 ...
2
votes
1answer
658 views

How to put enctype=“multipart/form-data” in categories form?

I had success putting the code below to include enctype (for images) in custom post type forms, but I'm not able to use it in categories form... is this possible? Thanks. add_action( '...
-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 ...
0
votes
1answer
416 views

Let Users Filter Posts by Custom Fields

I'm using the Advanced Custom Fields plugin to add custom fields to my posts, but was wondering what is the best way to go about creating a filter box for the user to filter through posts. I've ...
0
votes
2answers
756 views

Attach images to posts using custom fields (just paths to images already upld)

I'm setting up a real estate website, which i make listings using a custom post type 'listings' in which I have multiples metaboxes for beds, baths, and all other informations. I use a plugin to ...
1
vote
1answer
993 views

Auto Populate Custom Field with Complex Value That Increase by One?

Can somebody help me to sort this? I am using WP 3.5.2 and I have "Orders" post type where purchase_order custom field is located. This is the sample of purchase order record: POCOS20130051 PO - ...
-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 ...
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 ...
1
vote
4answers
6k views

User Profile / Add Custom Fields

Hello: I am trying to add 7 custom fields to the standard Wordpress wp-admin/profile.php page. There are a few site which suggest a simple bit of code to do this, for example: http://wpengineer.com/...
1
vote
3answers
1k views

Add custom field to existing meta box?

First off, I have been able to successfully implement custom fields within a custom meta box in Wordpress. I understand how this works. My question is, is there a way for me to add a custom field to ...
0
votes
2answers
1k views

Insert wp gallery shortcode into custom textarea

Is there a way to insert wp gallery shortcode into custom metabox textarea ? I would like to have something like this: New metabox in post/page with textarea and below textarea there are a button to ...
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 ...
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 ...
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 ...
-1
votes
3answers
649 views

Order by a meta field in query loop

I would like to sort my article from a category by a number added in a meta field. Here is the first step, I get the articles to display on the page. <?php $cat = get_post_meta( get_the_ID(), ...
0
votes
1answer
34 views

Creating custom post type with custom taxonomy and custom fields programatically

I need to create a custom post type. This post type will have a custom taxonomy. Also this post type will have custom fields. I dont want to use any plugins to do it, i want to include the creation ...
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 ...
1
vote
2answers
2k views

Displaying Meta Box Image

I have some problems displaying info from my custom meta box in my custom post type single. I'm using Reusable Custom Wordpress Meta Boxes by Tammy Hart. I'm able to display the textfields using this:...
1
vote
2answers
887 views

Force hide custom field metaboxes

How can I completely remove the custom fields and the collapse button in the Edit Post/Edit Page custom screen, but without removing the capability to add custom fields with a PHP function?
-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?
-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
432 views

Creating post custom field text area

I want to make, I guess a custom field for my theme. I'm not sure is it the right way to do this with custom fields. I searched a lot, but could not find what I need. So I'm hoping that some one ...
-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
1answer
482 views

Order custom fields alphabetically

I've been trying to order the custom fields alphabetically, but I can't get the ordered list I want... this is the code I'm using: <?php $vMarca = get_field('tienda_marcas' , false, ...
1
vote
1answer
927 views

Trying to sort and display categories(not posts) by custom field: 'order'

I'm a WordPress rookie. I've added a custom field to my "Category" taxonomy. The custom field is "custom_order" and its purpose is to hold a number so that my categories can be sorted and displayed in ...
0
votes
1answer
414 views

How can I change the publish date based on a custom field?

How can I change the publish date based on a custom field? Author uses a date picker to choose the date for journal entry. The date is used to make a list of all the users journal entries. I can ...