• I am trying to add a featured image into my coding and I am not having any luck

    I have this added into the functions page

    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 150, 150, true );

    But anything after that im not sure on. I’m a newbie to wordpress so if someone could walk me through this I would totally appreciate it!

    My Site – http://adorkablii.com/
    My Theme – http://wordpress.org/extend/themes/stripes-and-blue

    Please someone help!!!! Thank you!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • did you add the_post_thumbnail(); thumbnail function in your loop?

    Thread Starter adorkablii

    (@adorkablii)

    I don’t know what the loop is? I went into the index.php and i have no idea where it goes!!! =(

    You can read about the loop in the codex: Loop

    Basically the loop is the bread and butter of wordpress, this is where all the magic happens.

    Here is an example of the loop, you can find something similar in the index page or any of the template pages.

    <?php if( have_posts() ): while( have_posts() ): the_post(); ?>
      <h2><?php the_title(); ?></h2>
    
      <img src="<?php the_post_thumbnail('full'); ?>" alt="<?php the_title(); ?>" />
    
      <div class="post">
      <?php the_content(); ?>
      </div>
    
    <?php endwhile; endif; ?>
    Thread Starter adorkablii

    (@adorkablii)

    This is the first few lines in my index file. I am still extremely lost!!! =( Nothing seems to work!

    <?php get_header();?>
    <div id="content">
          <?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    			<?php if ( is_sticky() ) : ?>
    
                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Featured Image questions’ is closed to new replies.