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

learn more… | top users | synonyms (2)

-1
votes
2answers
502 views

How to mark a image attachment as background image?

I am trying to add a functionality to mark a post's attachment id as a background image. Basically, I would like to replicate the post thumbnail functionality: in the image attachment details, the ...
1
vote
2answers
794 views

Can't get metabox value (a url) returned using WPAlchemy

I'm using the WP Alchemy class to add custom metaboxes to templates in the admin panel and pull results from those metaboxes into the theme front-end. Here is the relevant code in content-link.php (in ...
0
votes
2answers
976 views

Post rating using Custom Field

I'm writing new theme for my blog. And I want to make some kind of post rating using custom fields. There are two fields: 'good-post' and 'bad-post'. And after each post I placed two buttons. Yep, ...
1
vote
2answers
2k views

Show Custom Fields in Quick Edit

I have several custom fields that I need my client to be able to edit at anytime. For the sake of convenience, I'd like them to be able to edit these custom fields from the Quick Edit. This way they ...
0
votes
1answer
76 views

Inserting custom fields into new-post.php without using the Custom Fields Template plugin?

I know there are a few plugins (Custom Fields Template seems to be the most popular one) that lets me insert custom fields into the new-post.php template. But I'm wondering if I can add in a few ...
0
votes
1answer
48 views

Using an “IF” statement based on the existence of custom field

I wish to use a function which is run only when a specific custom field is available. Something like: if (custom_field_x_exists("name_of_the_custom_field")) : <Do some ...
1
vote
1answer
2k views

Get custom field values into the sidebar/widget?

I haven't seen this done, but I want to return the custom field values outside of the loop in the sidebar. Is there a plugin, or another way to achieve this? thanks!
1
vote
2answers
406 views

Conditional custom field query

I'm working on a job board-type site, and the client want to sell featured posts. They want the featured posts to expire from showing up in the "featured" section after a predetermined period of time, ...
1
vote
1answer
2k views

Is it possible to store arrays in a custom field?

If I understand correctly, custom fields work like this: key(string/int) => value(string/int) Is it possible to define a custom field like this? key(string/int) => value(array (string/int, ...
0
votes
1answer
581 views

Can serialized arrays in DB be matched against serialized arrays with meta_query?

Say I have an array of checkbox choices associated with a post (a custom field) stored in the database in serialized form. On my site, I present users with the same checkboxes and let them make their ...
0
votes
1answer
244 views

If post custom meta data is not set, show normal state

I'm much of a php-noob but have this idea of a loop for my site. I have the idea behind it but maybe you have an idea how to put this into code: $customfield = get_specific_customfield if ...
0
votes
1answer
774 views

make a dropdown custom field with 'cities' list in it

I am developing a website for real estates. I was wondering that how can I add a dropdown to my custom forms (theme my login plugin) for cities states etc. The basic point is that I dont want to add ...
0
votes
1answer
636 views

Creating an If/Else statement using WPAlchemy MetaBox radio boxs

I am using the WPAlchemy MetaBox Class to create additional metaboxs on my site. One has a section with a group of radio boxes. I've coded it as follows: <?php $mb->the_field('docposs'); ...
0
votes
1answer
274 views

Can I access a post meta field before the loop?

If I call the following function (on a page template, e.g. page-home.php) before the loop, nothing is returned. If I call it during or after the loop, the expected values are returned. Is there a way ...
2
votes
1answer
1k views

Metabox image upload and custom field

Is it possible to a) upload image in meta box (not using default WP image uploader) and then b) get the path to uploaded this way image in a custom field?
2
votes
1answer
170 views

Related links - from other sites

I'm in middle of re-building a website that's coded in a rather terrible custom CMS. Since the site is essentially a blog, I've been doing it in Wordpress. One thing I'd like to do is be able to add ...
2
votes
1answer
467 views

Search Custom Post Type Custom Fields

There are tutorials that explain how to limit a search to a specific category. My question is, is there a way to configure wordpress' search to, within a custom post type, search for a custom field ...
1
vote
2answers
962 views

Insert attachment ID in custom field from media uploader

This is what I want to do: In the media uploader, add a link "Use this attachment ID as custom field". Add the attachment ID in a custom fields meta box. I've searched for hours for a plugin that ...
0
votes
1answer
1k views

Group Posts By Custom Meta Value: Date

I have a post with a custom meta value which is populated via a jQuery datepicker and it gets stored in the following format: yyyy/mm/dd - is there a way I can group all posts from the same day ...
0
votes
1answer
144 views

PHP Puzzle: Unique Styles with PHP loop

The Puzzle: I am currently working on a music blog that has various venues and numerous locations that are laid out at the top of each post as follows: USA.California.Los Angeles. Hollywood Bowl ...
0
votes
1answer
231 views

How can I duplicate “Add Custom Field” with just JavaScript?

I frequently need to add several Name-Value pairs to the Custom Fields of a post. At present I add these one by one, by entering the Name and Value and clicking Add Custom Field. I'd like to speed ...
1
vote
1answer
94 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
440 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
275 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
2k 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
841 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
286 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
310 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
3k 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
277 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
690 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 ...
3
votes
4answers
2k 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
52 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
245 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
214 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
139 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
352 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
836 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
538 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
815 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
199 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
67 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
189 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
459 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
127 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
105 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
382 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 ...
2
votes
3answers
2k 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 ...