is there php code for next and previous year,month,day link in archive page i just need something like that
<-previous [year] next->
<-previous [month] next->
<-previous [day] next->
im creating a calendar and need those .
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityis there php code for next and previous year,month,day link in archive page i just need something like that
<-previous [year] next->
<-previous [month] next->
<-previous [day] next->
im creating a calendar and need those .
thank u all i just did a simple code to get what i want
<?php
$prevyear = date('2150') - 0001;
$nextyear = date('2150') + 0001;
$prevmonth = date('01') - 01;
$nextmonth = date('01') + 01;
echo echo get_year_link($prevyear)."<br />".get_year_link($nextyear)."<br />".get_year_link($prevmonth)."<br />".get_year_link($nextmonth)."<br />";
?>