Unable to select image with custom field
This has now been solved. It was a case of fixing the http error I was getting with the flash uploader. It then gives you the select button rather than the insert into post.
This has now been solved. It was a case of fixing the http error I was getting with the flash uploader. It then gives you the select button rather than the insert into post.
I believe that your best option would be to create a single field and save all values in an array, something like this: Create more Meta Boxes as needed.
You can use a simple custom field and tweak your template a little, for example say you call that custom filed “original_author” then your theme you need to replace <?php the_author(); ?> with: <?php echo get_post_meta($post->ID,’original_author’,true); ?>
Try to re-install your wordpress, it might help you, and also try using different browser, to check the cache problem
You can add it directly through your functions.php, unfortunately this is not documented very well at all. You want to hook into add_comment_meta using add_action, to look at this further refer to line 500-ish of comment.php. It looks like this function add_comment_meta($comment_id, $meta_key, $meta_value, $unique = false) { return add_metadata(‘comment’, $comment_id, $meta_key, $meta_value, $unique); }
You need to create metaboxes for the custom Post meta data for which you want to add UI. Refer to add_meta_box() for implementation documentation. EDIT Based on your comment, it would appear that, in order to change an existing Post custom metabox, you need to find the callback function referenced by add_meta_box(). Can you post … Read more
If it’s a single post or page, you can just pass the global $post->ID: echo get_post_meta($post->ID, ‘fb_name’, true);
Would it be better to ditch the JS formatter on the input fields in the admin and instead add the dollar sign and comma separation on the front end? Yes, definitely. This seems more logical, but then it raises another question of how to prevent a user entering a dollar sign or comma formatting in … Read more
The only built in way ( using a function) is to use WP Query and the custom field parameters, specifically meta_query and compare. http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters An example to get you started: $query = new WP_Query( array( ‘meta_key’ => ‘your_date’, ‘meta_compare’ => ‘=’ ) ); Alternatively, the custom field functions in WordPress do not have many parameters, … Read more
You can register custom taxonomy like so: <?php // Register custom taxonomy for locations function mamaduka_register_taxonomy_location() { register_taxonomy( ‘location’, array( ‘post’ ), array( ‘hierarchical’ => true, ‘label’ => ‘Locations’, ‘public’ => true, )); } add_action( ‘init’, ‘mamaduka_register_taxonomy_location’ ); ?> for more information about custom taxonomy see Codex: http://codex.wordpress.org/Function_Reference/register_taxonomy