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.