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

learn more… | top users | synonyms (2)

4
votes
4answers
6k views

Sorting a query by custom field date

EDIT: Reworded the question for more clarity I'm trying to sort by custom meta box data, which I am converting to a date using the strtotime function, but I'm having some difficulty. My chief ...
0
votes
1answer
2k views

Using 'strtotime' function to convert a custom-meta-box to a date-stamp

I am building a "podcast" post type in a wordpress build using custom-post-types, meta-boxes & taxonomies. There may be a simpler way to do this.. I'm still learning and this is my first go at ...
-1
votes
1answer
146 views

Shortcode not picking up custom field

I created a custom field that allows me to set the cropping style of timthumb, but I am also using short code to populate a page with blog posts, but the shortcode isn't picking up the customfield, so ...
0
votes
1answer
375 views

How can I add user profile fields to my mailpress mailout

I want to be able to send emails to my subscribers but reference their name in the email and possibly some other profile fields. Can I do this using mailpress? So for example. I want each email ...
0
votes
1answer
335 views

query usermeta from custom field

I am using a plugin to create custom fields in the user registration. I have created a check box field called g300 which is the name of the meta_key stored in wp_usermeta. It looks like the value ...
0
votes
1answer
168 views

How to order posts by number of Vimeo Likes

I have number of posts that contain embeded video from Vimeo, I can get vimeo likes and display them inside the post using vimeo API but how can I order those posts by number of Vimeo likes?
1
vote
2answers
5k 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: ...
0
votes
1answer
940 views

Difference between 'LIKE' and 'IN' in meta queries

You can use a variety of different comparison operators in meta queries, among which are 'LIKE', 'NOT LIKE', 'IN', and 'NOT IN'. What is the difference in use between LIKE and IN? Here's the ...
0
votes
2answers
2k views

Advanced Custom Fields Plugin - Unable to get URL from post_object

I'm not sure what I'm doing wrong here. I have a field called "grid_thumbnail" and a "related_projects" post_object. I am able to display the title of the related post. I just don't know how to get ...
0
votes
3answers
846 views

Displaying a video on the homepage via a custom field inside a php widget

I'm trying to get a video to display inside a widget which is called from a custom field inside a post. The code I am using is here: <?php ...
0
votes
1answer
2k views

Trying to use Advanced Custom Fields with custom image sizes

I have a product section on my wp-site. I am trying to display the attached thumbnail image in specific sizes that are automatically cropped to the right size. I have used Advanced Custom Fields to ...
0
votes
1answer
566 views

Inserting custom fields into single.php

I am trying to get a custom field to show straight after the main body of text in single.php BUT before the Outbrain and Facebook Connect boxes. If I put the line to show the address above <?php ...
0
votes
1answer
688 views

wordpress - add a custom admin section with fields for name, address, city,state, and photo upload

Am attempting to create a custom post type and have it contain very specific info. Name, address, city, state, zip and photo - as a post. Need to have the admin section show form fields named as ...
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
361 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
36k 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
94 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
123 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
330 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
356 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
384 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
78 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
480 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
561 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
156 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
90 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
143 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
214 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
555 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
391 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
564 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
300 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
562 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
227 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
478 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
508 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
3k 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
477 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
452 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 ...
4
votes
1answer
4k 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
576 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
660 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 ...