Featured image not showing up
-
This is the code i found in the content php file
<?php
/**
* The template used for displaying page content in page.php
*
* @package ThemeGrill
* @subpackage Ample Pro
* @since Ample 1.0
*/
?><article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<?php do_action( ‘ample_before_post_content’ ); ?><div class=”entry-content”>
<?php the_content(); ?>
</div><?php
wp_link_pages( array(
‘before’ => ‘<div style=”clear: both;”></div><div class=”pagination clearfix”>’ . __( ‘Pages:’, ‘ample’ ),
‘after’ => ‘</div>’,
‘link_before’ => ‘<span>’,
‘link_after’ => ‘</span>’,
) );edit_post_link( __( ‘Edit’, ‘ample’ ), ‘<span class=”edit-link”>’, ‘</span>’ );
do_action( ‘ample_after_post_content’ ); ?>
</article>I found an article you guys posted about putting in this code under
<?php if ( has_post_thumbnail() ) { ?>
<div class=”featured-image”>
<?php the_post_thumbnail( ‘colormag-featured-image’ ); ?>
</div>
<?php } ?>this section-
<?php do_action( ‘ample_before_post_content’ ); ?>I understand that was for colormag but i changed the name to ample and still, the featured image doesn’t show up.
The page I need help with: [log in to see the link]
- The topic ‘Featured image not showing up’ is closed to new replies.