I implemented a custom field into one of my post formats called 'url'. When I enter a random string of characters into the field, it saves just fine and I display it in my template like this:
<h2><a href="<?php echo get_post_meta($post->ID, url, true); ?>"><?php the_title(); ?></a></h2>
However, whenever I enter a URL into this field, i.e "http://wikipedia.org", the value doesn't save. What is going on here? Am I doing something wrong or do I have to treat URLs differently?