Здраствуйте!
Подскажите, как на главной странице слева вывести фото из поста, справа краткое описание новости.
Код:
<article id="">
<header class="f_header"><h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( ‘Permalink to %s’, ‘buzznews’ ), the_title_attribute( ‘echo=0’ ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</header>
<div class="entry-summary">
<?php the_excerpt(); ?>
<?php
$fcat = get_the_category($post->ID);
$fcatid = $fcat[0]->term_id;
$fcatname = $fcat[0]->cat_name;
$fcatlink = get_category_link($fcatid);
echo ‘<span class="postcat"><strong><a href="’.$fcatlink.’">’.$fcatname.'</a></strong></span>’;
?>
<?php echo ‘<a href="’.$commentlink.’" class="comment-count" title="’.$commentcount. ”.$comments_text.’" rel="comment">’.$commentcount.'</a>’; ?>
<?php edit_post_link(‘[Edit]’, ‘<small>’, ‘</small>’); ?>
<?php
$views = get_post_meta($post->ID, ‘views’, true);
global $user_ID;
if( $user_ID ) {
if( current_user_can(‘level_5’) ) {
echo ‘<small class="red">’ .$views .’ views</small>’;
}
}
?>
</div><!– .entry-content –>
</article>