Custom post type missing custom fields

Is display of the “Custom Fields” metabox enabled for your Custom Post Type’s Edit Screen? To check: 1) Edit (Post Type) Screen 2) Click the “Screen Options” tab in the upper right-hand corner 3) Ensure the “Custom Fields” checkbox is enabled WordPress 3.1 made some (ahem) decisions regarding which metaboxes should display by default on … Read more

Display custom field value as a hyperlink

<?php $custom_fields = get_post_custom($post_id); //Current post id $my_custom_field = $custom_fields[‘website’]; //key name foreach ( $my_custom_field as $key => $value ) echo $key . ” => <a href=”” . $value . “”>Click Here</a><br />”; ?>

querying a custom field

i am not sure that this is place you should change the shortcode This code retrieves several values and not one.. as i understand it you are looking to get one value back right ? that’s much simpler and doesen’t require the use of “foreach” you simply put this in the desired location <?php echo … Read more