Created
July 21, 2017 11:05
-
-
Save whatjackhasmade/96b7deb80f0023c84242780957e4cb2b to your computer and use it in GitHub Desktop.
Display Posts Published One Year Ago
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$current_day = date('j'); | |
$last_year = date('Y')-1; | |
query_posts('day='.$current_day.'&year='.$last_year); | |
if (have_posts()): | |
while (have_posts()) : the_post(); | |
the_title(); | |
the_excerpt(); | |
endwhile; | |
endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment