Support » Fixing WordPress » Permalink for blog post images

  • Resolved thebigkick


    Hey WP,

    My first post here. I come from Zen Cart and have to say that I absolutely love the structure of WP.

    Anyway, I built up a theme from scratch. There are plenty of things that I’m missing, I’m sure, but one thing I’d really like is the ability to add images along with each post.

    What is the php (er permalinks, I think is what WP calls these) for the blog post image?

    From the picture, I’m talking about the goat. Right now the goat pictrue loads with every new post. How can I make this a dynamic post in the dashboard?


Viewing 3 replies - 1 through 3 (of 3 total)
  • <?php the_post_thumnail(); ?>

    You will have to set the images as a featured image in the lower right hand corner

    Set them as featured images every time I post them during my entry?
    Here is a sample of the code. I’m thinking I put it were the /img/postimages/1.jpg is?

    <div class="post-item">
    <img src="<?php echo bloginfo('template_directory') . '/img/postimages/1.jpg' ;?>"
    alt="post image"  />
               <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
               <p class="meta">posted by <?php the_author();?> on <?php the_date(); ?></p>
               <?php the_content('Read more...'); ?>
            <div class="numComments">
                                    	<a href="<?php comments_link(); ?>"><?php comments_number('0', '1', '%'); ?></a>
                                    </div><!-- end numComments -->

    Thanks for the quick response btw

    Figured it all out. I’m a WP expert now!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalink for blog post images’ is closed to new replies.