A WordPress theme I used to use on www.chriswiegman.com.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

89 lines
1.9 KiB

<?php
/**
 * The template for the archive page
 *
 * @since   5.0.0
 *
 * @package CW\Theme\Templates\Page\Archive
 *
 * @author  Chris Wiegman <chris@chriswiegman.com>
 */
namespace CW\Theme\Templates\Page\Archive;
get_header();
?>
	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">
			<?php
			while ( have_posts() ) :
				the_post();
?>
				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<header class="entry-header">
						<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
					</header>
					<!-- .entry-header -->
					<div class="entry-content">
						<?php the_content(); ?>
						<div class="archive-page">
							<h4><?php esc_html_e( 'Pages:', 'chriswiegman' ); ?></h4>
							<ul>
								<?php wp_list_pages( array( 'title_li' => '' ) ); ?>
							</ul>
							<h4><?php esc_html_e( '50 Latest Posts:', 'chriswiegman' ); ?></h4>
							<ul>
								<?php wp_get_archives( 'type=postbypost&limit=50' ); ?>
							</ul>
						</div>
						<!-- end .archive-page-->
						<div class="archive-page">
							<h4><?php esc_html_e( 'Categories:', 'chriswiegman' ); ?></h4>
							<ul>
								<?php wp_list_categories( 'sort_column=name&title_li=' ); ?>
							</ul>
						</div>
						<div class="clear"></div>
						<!-- end .archive-page-->
						<?php
						wp_link_pages(
							array(
								'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'chriswiegman' ),
								'after'  => '</div>',
							)
						);
						?>
					</div>
					<!-- .entry-content -->
					<footer class="entry-footer">
						<?php edit_post_link( esc_html__( 'Edit', 'chriswiegman' ), '<span class="edit-link">', '</span>' ); ?>
					</footer>
					<!-- .entry-footer -->
				</article><!-- #post-## -->
			<?php
			endwhile; // End of the loop.
			?>
		</main><!-- #main -->
	</div><!-- #primary -->
	<?php
	get_sidebar();
	get_footer();