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

learn more… | top users | synonyms (2)

1
vote
2answers
1k views

How to customize default wordpress editor?

Good to hear that Sonny (wordpress3.3) has the new editor API wp_editor() that gives us the ability to use multiple instances of the editor in our custom fields with ease. But I needed to customize ...
1
vote
0answers
350 views

Dynamically create check boxes for given post titles in WPAlchemy

I'm using WPAlchemy to create meta boxes. What I want to do is to dynamically create a group of check boxes with post titles. In other words, I want to replace a, b and c with the query of post ...
17
votes
4answers
32k views

Advanced search form with filters for custom taxonomies and custom fields

I'd like to build an advanced search form for a specific custom post type, having filters for the custom post types custom fields, custom taxonomies, and for a separate custom post types properties ...
2
votes
0answers
90 views

Including Database Generated Pages in Site Search [closed]

Our library uses a separate little php/mysql app and wordpress template pages to display lists of resources for users. The resources are not included in site search, of course, since the pages are ...
0
votes
1answer
114 views

Add Custom Profile Field as Notes

I would like to add a custom field "NOTES" to the user profile. This custom field should not only be updated,saved and display the current value but be displayed as ongoing (previous and current) ...
0
votes
1answer
306 views

Is it possible to compare the current time with a custom “start” and "end date

I need to be able to display a custom post type if the current date is between the start and end custom meta field dates. Here is my code so far, it seems to just be ignoring the query and displaying ...
0
votes
1answer
330 views

How To Use Custom Fields With .mp3 Links

Hope it doesn't seem to shallow of a question, but I've searched the web as much as I've could and have not found anything similar yet. :: Creating a regular post; How can I place a .mp3 link in a ...
0
votes
3answers
1k views

Custom field being erased after autosave

Why wont the custom fields from this post type save? I have a custom post-type called Photos and a couple of meta boxes. Here is basically what I have in my functions.php add_action('init', ...
0
votes
1answer
347 views

Dictionary-style definition list plugin

I've discovered the types plugin, and I'm loving how simple it makes it to add custom post types and their associated field sets. One need that I've come across that it doesn't fill, however, is ...
0
votes
2answers
1k views

Inserting data into MagicFields using mysql queries

PART 01: INTRO Hey Stackexchange Greetings from the Snowy alps of Norway I have now tried for two full consecutive days to reverse engineer Magic Fields. Why? Because I am a simple man, and want to ...
0
votes
1answer
77 views

Show Custom Field of Current Page in For Loop

I'm implementing a scrolling horizontal template and this is the code to divs that are the pages of the template. <?php for($i=1;$i<=2;$i++) { ?> <div class="container" id="page-<?php ...
1
vote
3answers
1k views

MySQL query to set wp_postmeta using term_taxonomy_id value

I have a need to set the wp_postmeta value (in table: wp_postmeta) on every post that has a specific term_taxonomy_id (in table: wp_term_relationships): Specifically: run a query against every ...
1
vote
2answers
114 views

For homepage images (for small business website), is it better to use custom fields or post_thumbnail?

Already searched on here and couldn't find question so forgive me if it's been asked. I'm trying to use dynamic images on a homepage so my client can maintain the images. I've seen tutorials where one ...
0
votes
2answers
464 views

How do I use “if field exists” with $curauth?

I've added some extra $curauth fields to the user profile page via ths method: function change_contactmethod( $contactmethods ) { $contactmethods['twitter'] = 'Twitter URL'; // more $contactmethods ...
-2
votes
1answer
531 views

Too many if's and else if's ?? - Must be better way [closed]

Everyone on this forum has helped me tremendously. Thank you. I now have a page that functions the way I want it but my code seems to be cumbersome. To figure out a string to echo I have a long ...
1
vote
0answers
152 views

Save modified Custom Field content into another Custom Field on article save [closed]

In my articles I allow editors to enter a date in a human readable dd.mm.yyyy format into a custom field. But I also need this date as unix timestamp in the DB. So I wrote a function which takes the ...
0
votes
2answers
2k views

How to use get_post_custom_values to return the value of an array

I have a custom post type called albums and a custom field therein called tracklist which is an array containing song_title and duration. I would like to print a list of the songs on each album. It's ...
0
votes
1answer
85 views

Custom Field box history

I entered a test value ("hhhhhhhhhhhhhhhhhhhh") in my custom field box at some point, and now it always appears in the drop down when I am trying to select a value. Is there some way to get rid of ...
0
votes
2answers
141 views

How do I query the title (or handle?) of post meta fieldset (created with Simple Fields Plugin)

I am having a heck of a time trying to retrieve the title (or handle?) of my custom post meta fields. I am using the slmple fields plugin. http://wordpress.org/extend/plugins/simple-fields/ (as I ...
-2
votes
1answer
213 views

Google not index my Custom 404 page ?why?

I have a movie site. When i create First Look of that movie there also created further links related to that movie in the end of the Post using meta tags. For Example Movie HD Videos Movie Mp3 ...
0
votes
1answer
1k views

Multiplile values checkbox or select in custom meta box

I have followed the great answer by Jan Fabry in this question . How to make multicheck for post/page meta box this works great. My question though would be , what if someone WANTS a serialized ...
1
vote
2answers
548 views

How do I create custom fields for multiple post types?

I have created multiple post types and now want to create multiple custom fields for each post type. I am not entirely how to but more specifically I believe I am doing something wrong when trying to ...
0
votes
1answer
1k views

Display metabox title for custom fields with values

I'm using multiple metabox panels in my write posts. IN my functions I'm registering multiple metaboxes: $prefix = 'dbt_'; $meta_boxes = array(); $meta_boxes[] = array( 'id' => ...
0
votes
3answers
366 views

how can display a post on home screen without images

When i post something with an image, its also displayed over homepage.. And my post has image some images inside the content of the post.. and I am not using any featured image.. How can we display ...
1
vote
1answer
537 views

Filtering by Post Meta Custom Fields - Performance

I could use some advise on how to structure my data for performance. I have a custom post type with a lot of custom meta data stored in the wp_postmeta table as a serialized array under one meta key ...
1
vote
1answer
288 views

Show user info in a hovercard [closed]

I whant to display user info in a hovercard. I use a jquery plugin to for the hovercard. I call my file like this <?php include 'includes/tooltip.php'; ?> and this is my code from tooltip.php. ...
0
votes
1answer
554 views

WP E-Commerce Custom Meta > Serialized array

I have an issue where I am adding custom meta to my products. Everything works fine until I update my product. This is before: This is after update: I am thinking it has something to with how it ...
0
votes
1answer
213 views

Assign custom fields to multiple posts?

I'm looking for a quick way to assign custom fields to a selection of posts that I hand pick. What's the best way to go about this? Currently I'm forced to edit each page and manually add the custom ...
0
votes
1answer
1k views

Custom Field & Gravity Forms [closed]

I have the following custom function code which i'm using to create custom fields for a post type. The issues is that I need the custom fields to show up individually and at the moment they just show ...
0
votes
1answer
440 views

add custom fields to the post on admin side

I need to add a custom field in admin section (below the title field) which insert the values of that custom field in the db table. but all this i want to do through coding like <input ...
0
votes
2answers
485 views

Custom Post Type + Custom Meta Query Not Showing 2012 Posts

I created a custom "events" post type for a client that basically "hides" the post once it has expired (ie. the event already happened). The events are displayed in the order of the start date rather ...
0
votes
3answers
2k views

How can I add a custom field to an existing custom post type?

I have been asked to add some custom fields to an existing custom post type which was created using the Custom Post Type UI plugin. There is nothing in functions.php so how do I go about adding custom ...
2
votes
0answers
421 views

Meta_query and numeric comparison [closed]

I have a WP_Query with meta_query filter on meta_value. if( ($capacity != '') && ($capacity > 0) ) $filters[] = array('key' => 'mb_capacity','compare' => '>','value' => ...
0
votes
1answer
430 views

Retrieve IDs from custom field, count and display results differently according to count

The function below is inside a single post loop. I have an array of IDs in a custom field. Such IDs represent related posts. I'm using Advanced Custom Fields (ACV) plugin and I manage the custom ...
3
votes
1answer
3k views

Meta Query with AND & OR?

I'm trying to do some filtering for some posts in WP_Query, but I can't seem to get the right condition. Basically what I wanna do, is get posts that have the custom field event_data (sorted by this ...
0
votes
1answer
562 views

Filter search posts by post meta?

I'm working with a custom post type with custom taxonomy and custom fields and trying to filter the displayed results (on admin post listing page) by the custom field values... I've been trying to ...
0
votes
1answer
619 views

Advanced Custom Fields Plugin - Images not displaying

I am using the ACF purely so the user can upload images to a predefined location and have assigned the page rules accordingly. Everything seems to be fine on the WP back-end, with the three images ...
0
votes
2answers
127 views

get post id using custom filed value

I'm having custom field "prime" with values yes or no. I want to get the post id's with selected value "Yes".How can i get that. Thanks in advance
0
votes
1answer
605 views

Plot location on Google map using full address specified in custom field

Is there an easy way to plot a location on a Google map using an address specified in a custom field? For example, if a post has the following address specified; 1600 Pennsylvania Avenue, NW ...
0
votes
2answers
426 views

Get fields from metabox array

In my functions I'm registering multiple metaboxes with custom fields. A single metabox array for instance, looks like this: In functions.php $meta_boxes[] = array( 'id' => 'general_info', ...
0
votes
1answer
1k views

Display thumbnail from custom field

I have a custom field called picture. On the media settings page I've set thumbnail size to 100x100. If upload an image called gecko.jpg, Wordpress automatically resizes it and generates ...
0
votes
1answer
2k views

Advanced Custom Fields Plugin - not displaying images

I installed the plugin and assigned it to the relevant page but the problem is that the custom fields display 'no image selected' after I have uploaded them and do not appear on the relevant page. Any ...
-3
votes
3answers
602 views

Post count by meta_key meta_value [closed]

I have 100 posts to the ( states meta_key ), and different meta_value (AK,AR,CA,FL,HW,MN,SC,TX,MN,NJ). I want to show the post count on my site sidebar for posts AK-11 posts,AR-9 posts....
1
vote
3answers
385 views

Transients vs CRON +Custom Fields: Caching Data Per Post

Wanted some opinions on a solution I'm trying to come up with: I have a fan/enthusiast plugin I'm working on for fans of TV shows. One of the custom post types attached to the plugin is a release ...
1
vote
1answer
581 views

custom avatar removal

Hello i have implemented a custom avatar upload from front-end in my wordpress theme. It is working. User can add and remove customa avatar. My problem is when user selects to remove his/her custom ...
0
votes
1answer
2k views

Don't display html if custom field is empty

I'm using the plugin WP UI on my custom post type to display the content in tabs. I'm doing this in the template for the custom post type not using the shortcode provided by the plugin. I'm also using ...
0
votes
1answer
1k views

ajax jquery update custom field meta value front end

There is probably a much easier way to do this. After much trial and error trying to get a postid from a url, I've opted to add the id to the permalink. However I have no idea how the custom value ...
0
votes
1answer
1k views

wp_get_attachment_image_src() with advanced custom fields returning empty

I am using the advanced custom fields plugin to upload images for an image gallery. I am attempting to retrieve the different sizes of images that are saved in the uploads folder and having problems. ...
0
votes
2answers
566 views

Get custom post fields from multiple metaboxes

I'm registering multiple metaboxes in my write posts panels. In functions.php: $meta_boxes[] = array( 'id' => 'products', 'title' => 'Products', 'pages' => array('post', 'page', ...
0
votes
1answer
242 views

Get author total post votes from post meta

In author.php, i have the list with the posts written by the author. I'm trying to get the total number of votes, from the author posts. All posts have a post_meta with a numbered value. i need to ...