FAQ

Frequently Asked Questions

How to: Get posts published exactly one year ago – CodeRevolution

Here’s a nice idea to give a second life to your old posts: This code display automatically the posts you published exactly one year ago.

To achieve this recipe, simply paste the following code where you want posts published exactly one year ago to appear.

 <?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; ?> 

Get 25% OFF on any yearly plugin plan using this coupon:   wpbay-yearly-25off

CodeRevolution Knowledge Base

Video tutorials