Browse Source

now/desk edited

windhamdavid 1 year ago
parent
commit
133162722a
2 changed files with 4 additions and 4 deletions
  1. 3 3
      page-desk.php
  2. 1 1
      page-now.php

+ 3 - 3
page-desk.php

@@ -30,11 +30,11 @@ get_header(); ?>
 				<ul>
           <?php $sticky = get_option('sticky_posts');?>
           <?php if( !empty($sticky) ){ ?>
-          <?php $args = array('post_type' => 'post','posts_per_page' => 5,'post__in' => $sticky);?>
+          <?php $args = array('post_type' => 'post', 'orderby' => 'modified', 'posts_per_page' => 5,'post__in' => $sticky);?>
 					<?php $stickyposts = get_posts($args); ?>
-            <li>Recently Edited</li>
+            <li>Recently ( Edited )</li>
             <?php foreach ($stickyposts as $post) : setup_postdata($post); ?>
-              <li style="color:#777"><?php echo get_the_modified_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
+              <li style="color:#777"><?php echo get_the_modified_date('y/m/d'); ?> ( <?php echo get_the_date('y/m/d'); ?> ) - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
 					  <?php endforeach; ?>
           <br>
           <?php } ?>

+ 1 - 1
page-now.php

@@ -27,7 +27,7 @@ get_header(); ?>
 						<ul style="margin:0">
               <?php $sticky = get_option('sticky_posts');?>
               <?php if( !empty($sticky) ){ ?>
-              <?php $args = array('post_type' => 'post', 'orderby' => 'modified','posts_per_page' => 5,'post__in' => $sticky);?>
+              <?php $args = array('post_type' => 'post', 'orderby' => 'modified', 'posts_per_page' => 5,'post__in' => $sticky);?>
               <?php $stickyposts = get_posts($args); ?>
                 <?php foreach ($stickyposts as $post) : setup_postdata($post); ?>
                   <li style="color:#777"><?php echo get_the_modified_date('y/m/d'); ?> ( <sup>*</sup><?php echo get_the_date('y/m/d'); ?> )- <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>