Browse Source

tags topics templates

windhamdavid 6 years ago
parent
commit
90a501cb02
2 changed files with 42 additions and 6 deletions
  1. 9 6
      category.php
  2. 33 0
      tag.php

+ 9 - 6
category.php

@@ -4,16 +4,19 @@
 			<div class="entry-content archive wow fadeIn">
 			<div class="entry-content archive wow fadeIn">
 				<?php if ( have_posts() ) : ?>
 				<?php if ( have_posts() ) : ?>
 				<header class="page-header">
 				<header class="page-header">
-					<h1 class="super cm-sans">Category: <?php single_cat_title(); ?></h1>
+					<h1 class="super cm-sans">Topic: <?php single_cat_title(); ?></h1>
 				</header>
 				</header>
 				<?php while ( have_posts() ) : the_post();?>
 				<?php while ( have_posts() ) : the_post();?>
-				<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
-				<div class="entry-meta">
-					<div class="date">
-						<?php the_date(); ?>
+				<div class="col-sm-6">
+					<div class="entry-meta">
+						<div class="date">
+							<?php the_date(); ?>
+						</div>
 					</div>
 					</div>
+					<h4><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
+					<?php the_excerpt(); ?>
+
 				</div>
 				</div>
-				<?php the_excerpt(); ?>
 				<?php endwhile; ?>
 				<?php endwhile; ?>
 				
 				
 				<div class="clear">&nbsp;</div>
 				<div class="clear">&nbsp;</div>

+ 33 - 0
tag.php

@@ -0,0 +1,33 @@
+<?php get_header(); ?>
+	<div class="container">
+		<article id="content" class="single" role="main">
+			<div class="entry-content archive wow fadeIn">
+				<?php if ( have_posts() ) : ?>
+				<header class="page-header">
+					<h1 class="super cm-sans">Tag: <?php single_cat_title(); ?></h1>
+				</header>
+				<?php while ( have_posts() ) : the_post();?>
+				<div class="col-sm-6">
+					<div class="entry-meta">
+						<div class="date">
+							<?php the_date(); ?>
+						</div>
+					</div>
+					<h4><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
+					<?php the_excerpt(); ?>
+
+				</div>
+				<?php endwhile; ?>
+				
+				<div class="clear">&nbsp;</div>
+				<hr>
+				<?php dw_paging_nav();
+				else :
+					printf( __( 'Nothing Found', 'dw' ));		
+					get_search_form();
+				endif;
+				?>
+			</div>
+		</article>
+	</div>
+<?php get_footer('studio'); ?>