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

learn more… | top users | synonyms (2)

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
576 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
268 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 ...
0
votes
1answer
463 views

How can I do a variable for meta_query?

I have a code which needs a variable compare string array( 'key' => 'rob_value', 'value' => $rob, 'compare' => '=' ) the compare =>'=' needs to be ...
1
vote
1answer
2k views

Extra profile field as select box?

I want to add some more profile fields to Wordpress. It works fine with normal text box: <input type="text" name="gender" id="gender" value="<?php echo esc_attr( get_the_author_meta( 'gender', ...
0
votes
2answers
117 views

Custom Post Meta on a Different Page?

I'm using this code to call some custom post meta named port_excerpt: <?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($postid, 'port_excerpt', true); ?> This ...
2
votes
2answers
401 views

Custom image sizes for custom field media uploads

Is it possible to resize my image uploads to different settings, depending on what custom field I'm on? I'm using wpalchemy, and have an image uploader for a heap of different custom fields. It would ...
2
votes
1answer
527 views

How to prevent custom fields from being cleared during a bulk edit?

In my function for saving custom field values I add a few checks to prevent the values from being cleared during an autosave or a quick edit. add_action('save_post', 'save_my_post'); function ...
2
votes
1answer
2k views

Create Posts using Import>RSS/WXR/XML and pass values to Custom Fields

My problem is simple. I need to make a lot of posts containing image url's for a "photo gallery" page. I've read up a lot on creating posts from RSS feeds and imports. I've been successful at creating ...
0
votes
2answers
651 views

customizing wp user with custom fields

I want to allow the admin of a site i'm building to highly customize the wordpress user. This will be a highly advanced plugin so I'm fine creating a whole new page in the admin to do this ...
0
votes
1answer
721 views

Problem with date comparison for custom fields

This question follows on from: Can you do a date comparison on a custom field and query two or more custom taxonomies using WP_Query? and a similar thing here: ...
0
votes
1answer
39 views

How do i put a per page theme in a special box/div?

I am using 20-11 theme and i have the sidebar on the left, the main content center and now i would like to edit a php file (or not) to make a 3rd div to the right of the content. I'm unsure how i'll ...
2
votes
2answers
4k views

Using custom field as custom post title

I've setup a custom post type with a series of custom fields using the WPAlchemy class. I'm trying to take the value of one of the custom fields and use that as the post title. So far, though, I've ...
0
votes
1answer
239 views

How to query an out put value?

I have this custom query that Im working on and I need to be able to query output values as well as actual stored values. Example: $string = "This is #*&^% a test"; $string = ...
28
votes
2answers
14k views

How to add a custom field in the advanced menu properties?

Is it possible to add a custom field to menu items? What I want to do is be able to add a field for 'French Navigation Label' and a 'French Title Attribute' in the wp menu interface.
0
votes
1answer
726 views

Check & remove special characters in a field?

I would like to check whether a field has special characters, remove those characters and output (save) the value to another field. I am creating a user search function that search various fields, ...
-1
votes
2answers
95 views

Check if a field is capitalized?

I want to check the if the first letter of a field is capitalized. Example: If (First Name field) is capitalized { Capitalized! } else { Not Capitalized! } Thanks Thank you
0
votes
2answers
299 views

wpdb function insert doesn't work

It just won't insert anything, if I echo it, it will show everything fine, but it won't insert anything in database. The table name is correct. Code - global $wpdb; $meta2 = ...
0
votes
2answers
311 views

Add a custom meta box for client to order CPT posts how they want

Im looking for a way to add a custom meta box to a custom post type that will allow the user/client order the posts to show up how they want on the site. Is this possible? Basically using a very ...
0
votes
1answer
725 views

Extra Meta Data for Wordpress Multisite Taxonomy

I'm using a custom taxonomies across a Wordpress multisite install (same taxonomies on all sites) and i'm trying to add some custom meta boxes to each of these (same meta boxes on all sites). I'm ...
0
votes
2answers
2k views

Displaying custom field meta within WP_query loop

This function seems like it should work, and it mostly does, but what I'm lacking are the values for the 'author' key that ends the list item, prefaced by the text 'By'. What I'd like is for the ...
0
votes
2answers
425 views

Calling Custom Post Meta

http://www.vooshthemes.com/blog/wordpress-tip/create-a-professional-portfolio-using-wordpress-3-0-custom-post-types/ I'm using the above tutorial to build custom portfolio pages. The custom ...
1
vote
1answer
1k views

load custom fields on click

I have too much data stored in custom fields which I don't want to fetch on page-load, instead I'd give the user the opportunity to load the custom field values on click, possibly with ajax. Is ...
1
vote
1answer
291 views

Custom fields to taxonomy

Can I add some custom fields to specific taxonomy so when ever I call that taxonomy, custom fields attached to that taxonomy should also appear.
1
vote
1answer
187 views

Creating author profiles with extra fields and exporting that data?

I'm trying to find a way to let my subscribers sign up to my site and enter details in their author pages to confirm their attendance at an event. In order to create the additional fields, I've been ...
0
votes
1answer
191 views

sort a custom field base on the date or anything

I'm working on a project right now and I'm facing an issue that is about to freak me out. Basically I had to display information of some courses, in order to do so, I create a custom field called ...
0
votes
2answers
1k views

Dynamically add / duplicate custom meta in custom post types

I am using Custom post types in one of my themes I have one custom post type called "accommodation" with meta boxes to add details such as type of rooms (single, twin, double...); each room has a ...
2
votes
3answers
1k views

Save page data to an xml file

Is it possible to continually update an xml file on the server with data from a wordpress page? If so, how could I do it? I use this plugin http://plugins.elliotcondon.com/advanced-custom-fields/ to ...
0
votes
2answers
964 views

Store JSON in a custom field

I have a drawing canvas on some of my Wordpress' post pages, where users can draw on. Upon drawing, my JS code currently sends the user's drawing to a php file. This is where I store the array in JSON ...
2
votes
2answers
1k views

Displaying additional User Contact Information

I have been advised how to add additional contact info fields to the User admin area here (Click here). However, I am not entirely sure how I can display the the field contents in a link within my ...
0
votes
1answer
270 views

Best way to allow manageable social media URLS?

I am working on a site and it is possible that the site will have a number of pages which feature links to the client's social networking sites (Twitter, Facebook, LinkedIn...). Now I know that the ...
0
votes
1answer
371 views

Custom fields won't update

I have a small problem with custom fields. This is what I am trying to do: Whenever a new post is added, I check what category is selected, grab the sub categories and create custom fields with a ...
0
votes
1answer
1k views

MySQL Query that looks for post with Custom Field, then changes Category

I'm looking for a MySQL Query that will look for all the posts with custom field "meta_key_I_want_to_find", then if the custom field is detected, add a category to that post. The category has already ...
0
votes
1answer
129 views

use custom field value as post category in loop

I have a page template and at the bottom, I want a loop of posts based on a custom field value - store_name This is what I have: <?php global $wp_query; $paged = (get_query_var('paged')) ...
1
vote
1answer
852 views

Use Gravity Forms and a Shopping Cart for output to Freshbooks for an Estimate

I've been asked to develop a website pretty much like (but not the same as): http://www.yoursingapore.com/ basically we need to allow people to add Wordpress posts (custom post types) into a sort of ...
1
vote
1answer
153 views

how to interconnect custom post types?

I'd like to make a site about choirs, composers, conductors and singers. And so far I decided that I need to make a custom post type for "piece" -- any piece can be associated with choir[s], composer, ...
0
votes
1answer
329 views

Only show content slideshow if “slideshow” custom field exists

I am developing a theme for general release and there is a large content slideshow on the homepage. I have included a checkbox meta box in the post edit screen that allows users to determine which ...
0
votes
1answer
98 views

How to update custom field of a posts in a particular category

I have a lot of posts under category 'tution', which has custom field called 'video'. i need to update the 'video' value with same youtubeurl i.e all post would have the same value in the custom field ...
3
votes
2answers
1k views

Custom field values deleted when trashing custom post type

I've created a custom post type with 2 custom fields attached to it... When I create a post of this type and fill in the custom fields, the data is, in fact, saved to the db... However, if I trash one ...
1
vote
1answer
91 views

Extra option in editor

I'm sure there's an easy solution to this, but I'm wondering how to add custom input fields in the Wordpress editor. My goal is to have an image uploader to the right of the main editor, when an ...
1
vote
3answers
295 views

query in category.php repeats itself

I'm need some help on my query. I'm building up a category page where on top a post need to show where custom field key 'uitleg' has value 'ja'. Per category there is only one post with that value. ...
1
vote
4answers
1k views

HTML / Javascript in custom field textarea?

Is there a filter for allowing HTML / Javascript into a custom field textarea? I'm using get_post_meta. On the frontpage I want the HTML / Javascript to run, not to be displayed.
1
vote
2answers
1k views

Orderby custom field meta value ASC and then by date DESC

I need to allow post ordering in certain categories. One of the sorting options is a custom field meta value. First problem is that not all posts have that meta assigned and i need to order these by ...
0
votes
1answer
2k views

query posts with custom field meta value

<?php query_posts( array( 'showposts' => -1, 'post_parent' => $post->ID, 'post_type' => 'page', 'orderby' => ...
0
votes
1answer
1k views

How to make custom comment fields required and message field not required

I have a comment form that has name, email, brief, detailed and rating fields. The name, email, brief and rating need to be required, but the latter two are custom fields and I can only make them ...
1
vote
2answers
107 views

Eliminating the appearance of a specific custom field in a post

I would like to suppress the output of one of my custom fields. Is there a way to do this using the <?php the_meta(); ?>command?
3
votes
4answers
870 views

How I check if the same post slug has not been used before publishing?

For an indie rock agenda I created event posts. With the help of javascript, the custom fields values (bands, places and date info picked in select boxes) are copied as the post title when publishing ...
1
vote
1answer
316 views

Custom field not updating when value is empty

I've added a few custom fields to the WordPress image uploader using the hooks attachment_fields_to_edit and attachment_fields_to_save. Everything works very well, except when a field is erased by the ...