Exemple #1
0
    while (have_posts()) {
        the_post();
        ?>

<article <?php 
        post_class();
        ?>
>

	<header class="page-header">
		<h1><?php 
        the_title();
        ?>
</h1>
		<?php 
        cosmos_post_author(array('text' => 'Written by ', 'icon' => false));
        ?>
	</header>

	<div class="post-body">
		<?php 
        the_content();
        ?>
	</div>

	<div class="post-meta">
		<?php 
        cosmos_post_date(' on ');
        cosmos_post_category(' in ');
        cosmos_post_tag(' tagged ');
        cosmos_post_comments(' with ');
Exemple #2
0
<?php

if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

<article <?php 
        post_class();
        ?>
>

	<header class="page-header">
		<h1><?php 
        the_title();
        cosmos_post_author(array('before' => '<small>', 'after' => '</small>', 'text' => ' by ', 'icon' => false));
        ?>
</h1>
	</header>

	<?php 
        the_content();
        ?>
	<?php 
        comments_template();
        ?>

</article>

<?php 
    }
Exemple #3
0
        post_class();
        ?>
>

	<header class="page-header">
		<h1><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h1>
	</header>
	<div class="post-meta">
		<?php 
        cosmos_post_author();
        cosmos_post_date();
        cosmos_post_comments();
        ?>
	</div>
	<div class="post-body">
		<?php 
        the_excerpt();
        ?>
	</div>

</article>

<?php 
    }
    ?>