Esempio n. 1
0
// Get a a post so that we can determine which archive we're viewing
if (have_posts()) {
    the_post();
}
// Display a title based on the archive type
if (is_day()) {
    $title = __('Day', 'classblogging');
    $filter = get_the_date();
} elseif (is_month()) {
    $title = __('Month', 'classblogging');
    $filter = get_the_date('F Y');
} elseif (is_year()) {
    $title = __('Year', 'classblogging');
    $filter = get_the_date('Y');
} elseif (is_author()) {
    $title = __('Author', 'classblogging');
    $filter = get_the_author();
} else {
    $title = __('Archives', 'classblogging');
    $filter = "";
}
classblogging_show_archive_page_title($title, $filter);
// Display the loop, rewinding our posts so that it can function properly
rewind_posts();
get_template_part('loop', 'archive');
?>

</div>

<?php 
get_footer();
Esempio n. 2
0
<?php

get_header();
get_sidebar();
?>

<div id="content">

	<?php 
classblogging_show_archive_page_title(_x('Tag', 'noun', 'classblogging'), single_tag_title('', false));
get_template_part('loop', 'tag');
?>

</div>

<?php 
get_footer();
Esempio n. 3
0
<?php

get_header();
get_sidebar();
?>

<div id="content">

	<?php 
classblogging_show_archive_page_title(__('Category', 'classblogging'), single_cat_title('', false));
get_template_part('loop', 'category');
?>

</div>

<?php 
get_footer();
Esempio n. 4
0
<?php

get_header();
get_sidebar();
?>

<?php 
/* Show a list of search results or a no-posts-found message */
?>
<div id="content">
	<?php 
if (have_posts()) {
    classblogging_show_archive_page_title(_x('Search Results', 'search results page title', 'classblogging'), get_search_query());
    get_template_part('loop', 'search');
} else {
    classblogging_show_no_posts_message();
}
?>
</div>

<?php 
get_footer();