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

learn more… | top users | synonyms (2)

1
vote
1answer
99 views

Display two custom values from a post

I'm using the following code to display a custom value. The custom value being 'website' <?php $custom_fields = get_post_custom($post_id); //Current post id $my_custom_field = ...
0
votes
1answer
848 views

Display custom field value as a hyperlink

Using the following code in order to display custom field value, how can I automatically make it into a hyperlink? <?php $custom_fields = get_post_custom($post_id); //Current post id ...
0
votes
1answer
381 views

saving meta/custom field to tag

In my custom post type what I am trying to do is say I have select drop down option called party_ad. The value of the options are obtained via an RSS feed. echo '<select name="ad_Tags" ...
0
votes
2answers
3k views

Custom fields not displaying on front end

I've read a ton of tutorials and articles and searched for days now, but I still can't seem to get my custom fields to display in the loop and I could use a hand. First off, I definitely have the ...
0
votes
2answers
907 views

Sort posts after filtering them through multiple taxonomies

I'm using scribu's Query Multiple Taxonomies to filter posts through multiple taxonomies (which works great!). However, I'd like to allow people to perform further sorting on the results based on ...
1
vote
2answers
312 views

Using the theme options to change background

how do I add some options to a theme? I would like to add support, in my thmes, for dinamically changing the page background. I don't even know how to start. I think I can break down this issue in ...
1
vote
2answers
324 views

Conditional display for custom fields/taxonomy

If there's a value for the custom field, I want it to display the value. If there's no value for the custom field, I want it to display "N/A". I have this working for custom fields but cant replicate ...
1
vote
1answer
4k views

Add url from Custom Field as 'Featured Image'. Code not working

I'm trying to migrate a site to WP. We have a whole bunch of pictures, and I have done some research and figured -- I think -- my best bet is a CSV import of the data, storing the relative URL of the ...
0
votes
1answer
354 views

How can I modify my meta_query to work with prices that are stored in the database that contain dollar signs and commas?

My goal is to return posts based on a specific price range using meta_query. The price in the admin that the user enters is a custom field, created using WPAlchemy. In the example below, the query ...
1
vote
2answers
2k views

Add source URL from Feed WordPress (Syndication) plugin to a custom field in post editor

We're using the Feed Wordpress (Syndication) plugin to ingest external feeds resulting in posts published in WordPress. The plugin pulls the 'source' URL from the feed. We can display the source URL ...
0
votes
1answer
856 views

Adding a custom “Add Custom Field” button to Custom Meta boxes

Did I use custom enough in the title? Here is a quick explanation of what I am doing. I am creating a genealogy site and I have a custom post type called "Ancestor" In this post type there is quite ...
4
votes
4answers
3k views

meta_query for keys that aren't yet set

I'm trying to query for a custom post type for a gallery system. I have a checkbox to set a gallery as a "featured" gallery (set up through More Fields plugin) - if this is checked then the meta value ...
0
votes
2answers
53 views

custom filed from post in the side bar

I have a custom field in my post called fb_name. I need to be able to get that field name outside of the loop in my sidebar. How can I accomplish this?
-1
votes
1answer
254 views

A plugin for software reviews site like this one?

I want to create a software reviews site based on categories. I really like what Gizmo did (see link below) http://www.techsupportalert.com/best-free-pc-tune-up-utility.htm there is an Intro text ...
0
votes
1answer
222 views

How can I use custom properties to set different background on different pages?

The problem isn't that complex (compared to the description I'll write :)) but I'd like to do this as correct as possible (e.g. I could be doing it wrong with Home.php), so I'll give you the whole ...
0
votes
1answer
145 views

Query pulling a single post per month

I am trying to only show a single post per month on a query. I can set the date as a variable and use something like the php array_unique function to check the dates and only echo out unique ones, ...
0
votes
3answers
2k views

echo get_post_meta of all post in a category to fill up a select field

I want to retrieve a specific post_meta of all posts contained in a specific category. I want to build a search form at the top of each category with a select field which would be filled up by the ...
1
vote
1answer
384 views

Display All Custom Post Fields and Values, Unless Empty

I am looking to grab all of the custom post meta fields for a given post and display them on the page which i have accomplished with the following code. However I would like to check if( !empty() ) ...
1
vote
2answers
990 views

how to search in custom fields & custom taxonomy for custom search

I have a custom search which is a form that submits to the same page and uses wp_query to filter the results for a jobs site that I would also like the keyword search to also search in custom fields ...
0
votes
1answer
572 views

How can I sort the order of multiple custom field values in a custom post type?

Here's the website: KunzlerIP At the bottom of the website, you see a slider using Fancybox. Each thumbnail pops up some content from an individual custom post type post. For this custom post type, ...
2
votes
1answer
989 views

wp_handle_upload error “Specified file failed upload test” but still creates attachment?

Having a bit of trouble with an image upload custom meta box. What happens is the uploaded image is created as an attachment but the wp_handle_upload seems to kick back the error "Specified file ...
0
votes
2answers
210 views

Make separate text boxes for separate WordPress Custom Fields

I am trying to make usability of WordPress custom fields admin easier in my theme. I saw it in ElegantThemes' eStore theme. Only I couldn't figure out how to do it in my custom theme because I ...
0
votes
2answers
72 views

preselected custom fields in custom post type

I have a custom post type called "stock" and each post is going to have a stock_id, stock_name, stock_description and stock_available fields,...I would like to have defaults for these fields so the ...
0
votes
1answer
222 views

Make separate text boxes for separate WordPress Custom Fields

I am trying to make usability of WordPress custom fields admin easier in my theme. I saw it in ElegantThemes' eStore theme. Only I couldn't figure out how to do it in my custom theme because I ...
1
vote
1answer
597 views

How do you add a custom option to user data?

I would like to add avatars to my users. I have a limited group on a site I'm working. Uploading isn't really a problem we can just put the images on the server and use URL's to set our avatars(Only ...
0
votes
1answer
129 views

how to have custom post template including custom write panels for the users to post

I would like to have a separate custom page where the logged in users can post their content. Add post title, add content, add check boxes, image/file uploads, Is there any way to do so?
4
votes
1answer
108 views

Allow user to create instances of custom field

I have a custom field for a links page which takes a name and an URL and saves it in the post meta. However, I want the user to be able to click "Add new link" and a new custom box appears so they can ...
1
vote
0answers
387 views

Custom search using custom fields, post type, and custom taxonomy [duplicate]

Possible Duplicate: Include custom taxonomy term in search I need to create a search on a certian post type and then be able to have a checkboxes and dropdowns to search custom fields and ...
3
votes
3answers
3k views

Do_Shortcode not working for Embed

I'm trying to use Custom Field types to embed Youtube videos in a more organized fashion and using the Do_Shortcode() would seem to work perfectly, however this: <?php echo ...
2
votes
2answers
401 views

Wordpress Action Hooks and Post ID?

I'm creating a very basic Wordpress plugin whose purpose is to display a numerical value beside each post. My Logic for the plugin function (plugin.php) is this: <?php function foo($post_id){ ...
1
vote
1answer
827 views

TinyMCE in Custom Metabox not loaded after upgrading from WP 3.1.4 to WP 3.2

I want something very simple: a custom metabox with a TinyMCE editor in it. The following code help me achieve that easily in 3.1.4: add_action( 'add_meta_boxes', 'add_metaname_box'); function ...
0
votes
1answer
268 views

How to add extra field in admin comment section

I wish to add extra field in post comment section while admin is logged in. Screenshot I just add subject field in template comment form.But i couldn't store in db and retrieve it. How can i do ...
0
votes
1answer
321 views

Custom field bug in Wordpress 3.2

I have a question. I just installed Wordpress 3.2. And ever since then, when I want to add a custom field, precisely when I clicked on "Add custom field", my page is refreshed. And no custom field is ...
0
votes
1answer
168 views

Will multiple category descriptions effect my search engine optimization?

I plan to use the category descriptions as outputted content into my posts for site user searches within my site, but I want to know when I make the site live to search engines will that presence of ...
0
votes
1answer
2k views

Check if a specific custom field exists?

Is it possible to check if a custom field exists for a given post within the loop? For example, I'm using functions like get_post_meta($post->ID, 'Company', true); preceded by a <h4> tag, but ...
0
votes
2answers
1k views

How to Get the title of a custom field?

I know how to get the value of a custom field, using code like get_post_meta($post->ID, 'company', true);. Is there a way to get the name of the custom field?
-1
votes
1answer
2k views

Custom field for image, not showing image!

In wordpress 3 you can create your own custom content types (without plugins) natively. I have done this and created a new "add image" field. However, I'm having trouble displaying this image in my ...
0
votes
1answer
79 views

wordpress multi user question

The blog I'm implementing will have more than one user (different analysts) but there will be only one user (call it the publisher user) who will be checking through the posts and uploading them for ...
0
votes
1answer
174 views

WordPress set custom field to true, sets all others to false?

So, if I'm publishing a post, and set a value for this posts custom field, can I set the custom field value of all other posts to false? Well that's good to hear that it is possible, but maybe ...
4
votes
2answers
850 views

Add custom fields within meta box class “on the fly”

I'm one of the contributors for the Meta Box Class here on Github (link) and before I get too deep, I wanted to ask if anyone knew of a straight forward way to allow users to add additional fields "on ...
1
vote
2answers
334 views

how can i use custom field in query post

I want to get all featured items using query post. featured is meta_key using custom field plugin. I tried bellow,but it failed $featured_item = new ...
3
votes
1answer
881 views

Wordpress - custom fields are not restored to previous revisions

I have built several Wordpress websites and noticed that custom fields are not restored to previous revisions. This might cause a problem when using custom fields to store content. Anybody knows how ...
-1
votes
2answers
140 views

Associate an image with a post to show it in a slideshow

I'm building a site with a slideshow at the top of the page. I've got a unique situation in which the post that the image in the slideshow links to is not necessarily in the post itself. There are ...
1
vote
1answer
174 views

Find page IDs with specific meta tag key value pairs

Is there a way to find the ids of the pages who contain meta tags/custom fields with a certain key-value pair? Say, for instance, that I wanted to find all of the pages who had a ...
4
votes
1answer
573 views

explode array within shortcode

This functions at the moment but it only returns the first value from the array. I've been struggling to echo, print, explode, or whatever the multiple custom field values that share the same key ...
1
vote
1answer
3k views

How to construct multiple meta boxes

As of now I have a perfectly working script for a single meta-box. (I'll supply the details below.) However, I want to add more meta-boxes but am having trouble wrapping my head around how I would ...
0
votes
1answer
459 views

Custom post type's extra fields - how to handle?

I've refrained from asking this question for a couple weeks, as I wasn't completely certain what I wanted cleared up... think I got it. I'm in the process of putting together a plugin to run a ...
2
votes
1answer
1k views

The “_encloseme” Meta-Key Conundrum

While working with metaboxes / custom fields I've seemed to indirectly create many of these _encloseme meta_keys all over my wp_postmeta. Seen here: So far no problems have arisen from this and ...
0
votes
2answers
994 views

Working with multiple values and metaboxes

I have multiple values I need to be able to punch into a meta-box on the post edit screen. EX: I am working with set-list information for concerts. Song 1 Song 2 Song 3 etc... I am always ...
0
votes
3answers
2k views

Displaying Meta-Box Data Properly

Quick and dirty, I have meta boxes pertaining to concert information. (i.e. venue and location) and am trying to figure out how to properly display them in my post. At the moment to display the ...