Example #1
0
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
 >
	<div class="entry-thumbnail">
		<?php 
syhien_thumbnail('large');
?>
	</div>

	<div class="entry-header">
		<?php 
syhien_entry_header();
?>
		<?php 
/*
 * Đếm số lượng attachment có trong post
 */
$attachments = get_children(array('post_parent' => $post->ID));
$attachment_number = count($attachments);
printf(__('This image post contains %1$s photos', 'syhien'), $attachment_number);
?>
	</div>

	<div class="entry-content">
		<?php 
syhien_entry_content();
?>
Example #2
0
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
 >
	<div class="entry-thumbnail">
		<?php 
syhien_thumbnail('thumbnail');
?>
	</div>
	<div class="entry-header">
		<?php 
syhien_entry_header();
?>
		<?php 
syhien_entry_meta();
?>
	</div>
	<div class="entry-content">
		<?php 
syhien_entry_content();
?>
		<?php 
is_single() ? syhien_entry_tag() : '';
?>
	</div>
</article>