2 Commits 02296a7994 ... 35d0d2e4ee

Author SHA1 Message Date
  windhamdavid 35d0d2e4ee now page ⏰ 7 months ago
  windhamdavid 9641157c73 now 11 months ago
2 changed files with 2 additions and 2 deletions
  1. 1 1
      inc/utils.php
  2. 1 1
      page-now.php

+ 1 - 1
inc/utils.php

@@ -150,7 +150,7 @@ function now() {
 	foreach ($html->find('.markdown ul li') as $li) {
     if (!empty($html)) {
       echo $li;
-      if (++$i == 3) break;
+      if (++$i == 4) break;
     }
   }
 }

+ 1 - 1
page-now.php

@@ -30,7 +30,7 @@ get_header(); ?>
               <?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>
+                  <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> ( <sup>*</sup><?php echo get_the_modified_date('y/m/d'); ?> )- <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
                 <?php endforeach; ?>
               <?php } ?>
 							<?php $recentposts = get_posts(array( 'numberposts' => 13, 'offset' => 0, 'post__not_in' => get_option( 'sticky_posts' )) ); foreach ($recentposts as $post) : setup_postdata($post); ?>