Post Images (3 posts)

  1. alhitary
    Posted 4 years ago #


    How to make a frame to post images ?
    I design a frame and i don't know where is the file which shall i edit.

    Wish someone help

  2. Digital Raindrops
    Posted 4 years ago #

    You need to check your themes functions.php to see if the theme supports post images?

    You are looking for a line like this:

    add_theme_support( 'post-thumbnails' );

    Then set the post image size:

    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 120, 90, true );

    You do not need a frame?

    Then inside the loop, this might be in a file called loop.php or in your index.php

    To get the post thumbnail image you need to call it:

    <?php if(has_post_thumbnail()): ?>
    	<div class="alignleft" style="margin: 0 0 10px 0">
    		<?php the_post_thumbnail(); ?>
    <?php endif; ?>

    If your theme does not have the style "alignleft" just copy it from the twenty ten theme's style.css file.



  3. alhitary
    Posted 4 years ago #

    dear adeptris

    thank you for your reply

    My theme is twentyten.
    Is what you mentioned above is working with it ?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.