need help with VERY simple code problem

  • Unknown's avatar

    Hi I am running a wordpress site and I am trying to figure something pretty simple that I cant figure out

    This is my site

    http://jeremynative.com/

    and I want the IMAGES to be links to the article instead of the tiny box that says [read more]

    I narrowed down where the image appears

    <?php get_header(); ?>
    <?php
    $pov_disthumb = get_option(‘pov_disthumb’);
    ?>
    <div class=”box” onclick=’goToURL(the_permalink())’>
    <ul id=”latestpost”>
    <?php $firstClass = ‘firstpost’; ?>
    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <li class=”bags <?php echo $firstClass; $firstClass = “”; ?>” id=”post-<?php the_ID(); ?>”>

    <div class=”thumb” )>
    <?php if ( has_post_thumbnail() ) {
    the_post_thumbnail( ‘homepage-thumb’ ); }
    ?>
    </div>
    <h2>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <div class=”postinn bags”>
    <div class=”ger”><i><?php the_time(‘j M Y’) ?></i> • <?php the_excerpt(); ?></div>
    <span>“>Read More +</span></div>

    <?php endwhile; ?><?php else : ?>

    <div class=”post”>
    <h2>Not Found!</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
    <?php get_search_form(); ?>
    </div>

    <?php endif; ?>

    <div class=”clear”></div>
    <div class=”navigation ger”>
    <div class=”nav-previous fl”><?php next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older posts’ ) ); ?></div>
    <div class=”nav-next fr”><?php previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>→</span>’ ) ); ?></div>
    </div>

    <div class=”hrlineB”></div>

    <h1 class=”title”><?php bloginfo(‘description’); ?></h1>

    <?php get_footer(); ?>

    the image is put in on this line

    <div class=”thumb” )>
    <?php if ( has_post_thumbnail() ) {
    the_post_thumbnail( ‘homepage-thumb’ ); }
    ?>

    and the read more link is

    <span>“>Read More +</span></div>

    So I am trying to figure out how to make this php code which calls my image into the post into a link itself. IF I can get he_post_thumbnail( ‘homepage-thumb’ ); to be a hyperlink image to the_permalink(); my problem would be fixed :)

    thanks for looking and helping

  • Unknown's avatar

    this is the read more link

    <span><a href="<?php the_permalink(); ?>">Read More +</a></span></div>

  • Unknown's avatar

    Your site is not hosted on WordPress.COM and you are posting to the wrong support forum. This forum is for support of sites hosted on WordPress.COM.

    Your support questions must be posted to the correct support site for your softwareand that is here http://wordpress.ORG/support/

    For more on the differences: http://support.wordpress.com/com-vs-org/

  • Unknown's avatar

    Please read this and realize that there are 2 very different kinds of WordPress and that you are posting in the wrong forum:

    WordPress.com vs. WordPress.org

  • The topic ‘need help with VERY simple code problem’ is closed to new replies.