single_tag_title();
    ?>
</h2>
<?php 
} elseif (is_author()) {
    ?>
	<h2 class="archive-title"><?php 
    $curauth = isset($_GET['author_name']) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
    _e('Author: ');
    echo $curauth->nickname;
    ?>
</h2>
<?php 
}
?>

<!-- The loop -->
<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        wp960_get_content('archive');
    }
} else {
    ?>
	<p><?php 
    _e('Sorry, no posts match your criteria.', 'wp960');
    ?>
</p>
<?php 
}
Пример #2
0
 */
?>

<?php 
if (is_search()) {
    ?>
	<!-- Search form -->
	<h2><?php 
    _e('Search');
    ?>
</h2>
	<?php 
    get_search_form();
}
?>

<!-- The loop -->
<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        wp960_get_content('index');
    }
} else {
    ?>
	<p><?php 
    _e('Sorry, no posts match your criteria.', 'wp960');
    ?>
</p>
<?php 
}
<?php

/**
 * Loop template for a single post.
 *
 * @package WordPress-960
 */
?>

<!-- The loop -->
<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        wp960_get_content('single');
        comments_template('', true);
    }
} else {
    ?>
	<p><?php 
    _e('Sorry, no posts match your criteria.', 'wp960');
    ?>
</p>
<?php 
}
Пример #4
0
<?php

/**
 * Loop template for a page.
 *
 * @package WordPress-960
 */
?>

<!-- The loop -->
<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        wp960_get_content('page');
    }
} else {
    ?>
	<p><?php 
    _e('Sorry, no posts match your criteria.', 'wp960');
    ?>
</p>
<?php 
}