featured image does not show
-
I have this code:
<?php $mypages = get_pages('child_of='.$wp_query->post->ID.'&sort_column=menu_order&sort_order=asc'); $count = 0; foreach($mypages as $page) { $content = $page->post_content; if( $count % 2 == 0 ) $style="color white"; else $style="color gray"; $count++; $content = apply_filters('the_content', $content); ?> <div <?php post_class($style);?>> <a name="<?php echo get_page_link($page->ID) ?>"> <div class= "contentpart"> <?php echo the_post_thumbnail('feat'); ?> <h1><a name="<?php echo get_page_link($page->ID) ?>"><?php echo $page->post_title ?></a></h1> <div class="contentpart-text"><?php echo $content ?></div></div></div> <?php } ?>
I also have in functions.php:
if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); add_image_size( 'feat', 460, 9999 ); }
but the thumbnail images does not appear.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘featured image does not show’ is closed to new replies.