Support » Fixing WordPress » Featured Images for Posts but not Pages?

  • There is a “set featured image” option for my posts but not my pages. I want to be able to set featured images for my pages.

    I know I have to do something to the loop in the index.php file, because that’s the one that works for static pages?

    Below is the code for what I think is the loop part on the index.php page.

    Total n00b…what do I do from here?

    <?php
    					/* Run the loop to output the page.
    					 * If you want to overload this in a child theme then include a file
    					 * called loop-page.php and that will be used instead.
    					 */
    					//get_template_part( 'loop', 'page' );
    					 wp_reset_query();
    						if ( have_posts() ) : while ( have_posts() ) : the_post();
    						the_content();
    						 endwhile;
    						else:
    						endif;
    					wp_reset_query();
    					?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured Images for Posts but not Pages?’ is closed to new replies.