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 />";
?>
Related Posts:
- Cache previous versions of website?
- Styling Previous/Next Pages differently from Index
- A problem with date archives
- How do I remove unwanted pages like archive, search, etc.?
- Get Next / Prev 3 Posts in Relation to Current Post
- How can I lock down an old wordpress install I don’t intend to update?
- How can I get the Month Name from Archive?
- What is archive.php used for?
- Archive widget – limit number of months to 12
- How do I visit archive-post.php?
- How do I make wp_get_archives show me months where only pages were created?
- Get next/previous cousin page
- Sort custom-posts in archive.php via meta-key?
- How to make Next and Previous attached image navigation on the attachment page? [duplicate]
- Output yearly archive within a page
- Create a month by month archive of pages (not posts)
- How to show specific year archive into dropdown list
- How to make a custom Archive Page
- display archive as collapsing links
- Arrange and separate posts
- Customize first page of category
- front end publishing not working on front-end page
- How to show static placeholder when less post elements in archive page?
- Show only post titles in archives?
- if there is only one post in the category, directly open
- How to hide a post from archives
- How to disable monthly archive
- How to Create Custom Archive page
- Does only custom post type have post type archive pages?
- Modify text after post count
- How to show year/month archive including months with no posts
- Displaying Archives List
- Custom archives function
- Page is displaying blog archives
- terms_description and admin problem
- Next Previous siblings child pages
- If one taxonomy contains the same term as another then display post
- Author archive doesn’t work [closed]
- How to conditionally check for author archive when is_author() fails to work because the author has no posts
- Is there a better way to do headings for (all) archives?
- Date Archive pages 404 error
- Checking if a specific date archive is being displayed
- Wrap the “show_post_count” between div
- Is a list page usually called an archive page in WordPress?
- I want my yearly archives to show a list of all posts
- Get archives as array
- remove 2014 from wp_get_archives
- How can I make a page for post formats (specifically quotes) in wordpress 3.5
- Archive page showing wrong month
- Create an archive listing based on meta array
- Can’t Access Sessions or Variables through pages
- How to make an archive page template using WordPress 3
- How to Get The Excerpt of the page that displays Blog Posts
- Where is the content that is outputted by get_the_archive_description()?
- Create simple columned archive page
- I created a normal page, but the page displays as an archive page
- Secondary WP_Query being overriden in archive page
- Is there a way to multiply archive loop results sequentially?
- Blog pages show at most unrecognized by code
- Combining custom taxonomy posts with default posts on one archive page
- Create a custom URL for blog archive
- Custom loop in addition to default on archive page
- Need to have an archive widget which organizes and displays a custom post type using a custom date field
- How can I change the prev / next buttons text to Dutch?
- Show Daily Archives after specific dates
- Custom archive pages without “the loop”
- Remove posts from two categories in Archive Page
- How to get type of archive whether it is post or date or category archive?
- Twenty Twelve Calender Widget post titles creating disturbance
- Show multiple next and previous posts
- How can I create a master archive?
- Plugin: Events manager – Next and previous event
- Difference between $numpages & $max_page on archive pages
- Link back to (paged) archive and find the correct page
- Custom post archive page not opening 404 page
- How to disable date archives?
- Archive page no content to display
- Simplest way to archive a WordPress (and take down)?
- I want to be able to access archives to see how recently a post has been read: How can I do that?
- google index an Post type page I do not want
- How to Completely Remove Archive Title a.k.a the_archive_title?
- How to remove or hide archive page?
- Archives widget doesn’t work?
- date archive future posts
- Display future posts in archive
- Yearly Archive Page?
- date.php shows only three posts’ title. how to fix it?
- How to edit wordpress post without republishing
- Archive by Year
- Exclude a specific category link from archive / front page
- get next/previous post name
- Footer with next/previous posts
- Is that the query_posts() the real criminal here?
- Create archives by author role
- How can i display in themplate file only a few post
- how to hide all posts under one category
- Show monthly or daily archives
- WordPress 3.6 – archive.php doesn’t get triggered [closed]
- Add a “Next Post” & “Previous Post” styled button manually to a post
- How to have infinite scroll consider passed parameters?