Tagged Questions

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

learn more… | top users | synonyms (2)

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
144 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
377 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
952 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
562 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
945 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
208 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
213 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
549 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
385 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
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 ...
2
votes
2answers
387 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
825 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
264 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
167 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
918 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
1k 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
809 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
332 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
862 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
558 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
454 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
979 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 ...
0
votes
1answer
725 views

Dynamic User State & City selection

I need to implement a state-city selection for my users to choose from. Where they first choose their state and then there is a city drop down field that shows only the cities in that state. ...
0
votes
1answer
2k views

Automate post update for all posts?

I have managed to fill custom fields with certain predefined values of all my post, but the changes don't take effect until I manually update the posts. Example: // Predefined variable and value ...
1
vote
2answers
519 views

Adding an editable field to template?

I'm making a theme for a client (first time using Wordpress), and the client would like to have multiple site "descriptions" to be available. The first one as the main description, and the second one ...
4
votes
2answers
1k views

Using media-upload.php to upload mp3 via custom fields

I'm trying to use the Thickbox file upload dialogue with a custom field to allow the user to upload an mp3. What I want to do is to grab the URL of the uploaded mp3 and save it as postmeta (saving the ...
3
votes
1answer
188 views

Using wordpress post data as input for google visualisations

I'm trying to use wordpress post data (eg title, link, custom fields) as a data source for google visualisations. I want to be able to take the wordpress data for all posts and visualise using the ...
-1
votes
2answers
341 views

wrap text around custom fields array

I'm using this code here to grab all my custom fields from a post for use in an gallery array. http://www.kevinleary.net/get-all-custom-fields-attached-post-page-post-type/ function: // Get all ...
1
vote
1answer
328 views

Populating a page with content from post custom fields

I'm doing up a blog at the moment where each post is accompanied by the name of a song. Adding the songs to the posts is fairly easily done via custom fields. However, I also need to have a page ...
3
votes
1answer
1k views

importing data from non-wordpress mysql db

I have created an import file to get the articles from a non-wordpress db and bring them in as posts in wordpress, I am not sure how to bring over the thumbnail image into my custom field I defined as ...
5
votes
1answer
5k views

Using meta_query, how can i filter by a custom field and order by another one?

With the following code (in functions.php) my posts (of CPT event) are ordered by _end_date instead of _start_date. What's the proper solution to this as of WP 3.1.3? Of course I'd like to avoid using ...
0
votes
2answers
412 views

Unable to select image with custom field

I'm using the advanced custom field plugin to convert WP into a CMS (it's works brilliantly for this). There's just one issue - with an image field it's not quite a smooth process as images need to be ...
0
votes
1answer
147 views

CMS - User confusion when creating new page and having to select template and save first to see correct fields

I've made WP into a cms and there's a few niggling things that cause confusion. The main one is that when you create a page, you have to first select a template then enter a title then save as draft ...
0
votes
1answer
2k views

How to get the value of particular get $meta value in wordpress

I am using this wordpress Script to add metaboxes under posts.. I followed as it was written.. but I am having trouble on how to get those values in singe.php Example an uploaded image Please guide me ...
1
vote
2answers
1k views

Custom Post Type with Custom Title

I have a custom post type without title support and I'm trying to generate one from post's taxonomies and custom fields. To do so, I'm using this code: function custom_post_type_title_filter( $data , ...
0
votes
1answer
161 views

How to Do Custom Fields to Output a Definition List

So, I'd like to add some custom write panels when you go to write a new post in the WP admin. I'd like it to have a heading for each, and then a text input field where I can write in some text. I ...