Treehouse: Grow your CSS skills. Land your dream job.

WordPress separate image and text in a post

  • # September 19, 2011 at 2:41 pm

    Hi Guys,

    This must have been asked before, is there a way for wordpress to separate image and text in post using the_content()?

    I have this design and wanted to have my wordpress post look like this //

    Thanks in advance guys! :)



    # September 19, 2011 at 10:23 pm

    you should use different single template for your content….

    I mean …


    in that blog is a comment from @JustinTadlock, that have a coolest solution….

    and using

     < ?php the_post_thumbnail(); ?>

    will be a good start



    # September 20, 2011 at 4:10 am

    Thanks for the tip Locke, will check on this one hope it’s not complicated. Let me know if you guys still have other ideas :)

    # September 20, 2011 at 3:45 pm

    Setting up your site to use post thumbnails (or ‘featured images’) is quite easy. I just recently did a little article on it here: //

    The jist of it:

    Make sure something like this is in your functions.php file:

    if ( function_exists( 'add_theme_support' ) ) {<br />
    add_theme_support( 'post-thumbnails' );<br />

    You can call the image in your template with this:
    <?php the_post_thumbnail(); ?>

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.