Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress Link

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30618
    matt25
    Participant

    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];

    ?>



    "><?php echo $bike_url ?/>
    echo $bike_price;
    echo $bike_url; ?>

    Thanks,
    Matt

    #77619
    matt25
    Participant

    What are the code tags now? the post won’t format correctly
    Matt

    #77620
    Bob
    Member

    Code tags are still

      and 
     

    right?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.