Hi, I am using wordpress to create a site and basically I am trying to display a list of bikes for sale using a custom post type and catagoies. I want the image of the bike to be a link to the site of the manufacturer but for some reason instead of going to http://www.trek.co.uk for example it goes to http://wordpress.digital-spoon.co.uk/www.trek.co.uk I can’t work out why though, this is my code:
$loop = new WP_Query(array('post_type' => 'Bikes', 'posts_per_page' => 10));
while ( $loop->have_posts() ) : $loop->the_post();
$custom = get_post_custom($post->ID);
$bike_url = $custom["bike_url"][0];
$bike_img = $custom["bike_img"][0];
$bike_price = $custom[0];
?>
">
echo $bike_price;
echo $bike_url; ?>
Thanks,
Matt