WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Permalink for blog post images (4 posts)

  1. thebigkick
    Member
    Posted 2 years ago #

    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?

    http://i1193.photobucket.com/albums/aa353/thebigkick/ScreenShot2012-02-07at105429PM.png

    Thanks

  2. Vanguard Digital
    Member
    Posted 2 years ago #

    <?php the_post_thumnail(); ?>

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

  3. thebigkick
    Member
    Posted 2 years ago #

    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

  4. thebigkick
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags