php – tag help – post previous month
-
Hi,
I have the front page of my site set to show only the current month. I have used this code:
<?php if (is_home()) { ?>
<?php $current_month = date('m'); ?>
<?php $current_year = date('Y'); ?>
<?php query_posts("monthnum=$current_month&year=$current_year") ?>What I want to do is also show the previous month’s posts also. Anyone have an idea if this is possible, and how I might approach it? Can I use arithmatic operators in my parameters? for instance.
Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘php – tag help – post previous month’ is closed to new replies.