Browse Source

desk more posts

windhamdavid 1 year ago
parent
commit
4e71c55ea9
1 changed files with 22 additions and 10 deletions
  1. 22 10
      page-desk.php

+ 22 - 10
page-desk.php

@@ -22,22 +22,34 @@ get_header(); ?>
 			<div class="col-sm-3 studio-tools">
 				<ul>
 					<li>Recent Posts</li>
-					<?php $recentposts = get_posts('numberposts=24'); foreach ($recentposts as $post) : setup_postdata($post); ?>
+					<?php $recentposts = get_posts('numberposts=31'); foreach ($recentposts as $post) : setup_postdata($post); ?>
 					       <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - <?php the_date('n/y'); ?></li>
 					<?php endforeach; ?>
 				</ul>
 			</div>	
 			<div class="col-sm-4">
-				<div class="col-xs-6 studio-tools">		
-					<ul>
-						<?php wp_list_categories('orderby=name&exclude=1,7,44'); ?>
-					</ul>
+				<div class="row">
+					<div class="col-xs-6 studio-tools">		
+						<ul>
+							<?php wp_list_categories('orderby=name&exclude=1,7,44'); ?>
+						</ul>
+					</div>
+					<div class="col-xs-6 studio-tools">		
+						<ul>
+							<li>Year</li>
+							<?php wp_get_archives( array( 'type' => 'yearly') ); ?>
+						</ul>
+					</div>
 				</div>
-				<div class="col-xs-6 studio-tools">		
-					<ul>
-						<li>Year</li>
-						<?php wp_get_archives( array( 'type' => 'yearly') ); ?>
-					</ul>
+				<div class="row">
+					<div class="col-xs-12 studio-tools">
+						<ul>
+							<li>Tags</li>
+							<?php $tags = get_tags(); if ( $tags ) : foreach ( $tags as $tag ) : ?>
+							<a href="<?php echo esc_url( get_tag_link( $tag->term_id ) ); ?>" title="<?php echo esc_attr( $tag->name ); ?>"><?php echo esc_html( $tag->name ); ?></a>, 
+							<?php endforeach; endif; ?>
+						</ul>
+					</div>
 				</div>
 			</div>
 		</div>