I've build a custom post type for a calendar and created a structure like this:
- 2012 (general parent)
- 1-January-2012 -2-January-2012
If I am now on the side for the whole month, I want to display a link to the pages for the previous and next month.
example: January <-- February --> March
I tried *get_previous_posts_link()* and get NULL, then I set global $post and get NULL too.
Another question, is this in general the right way? Maybe then I get the post data / link for 31st January? I'm not sure if *get_previous_posts_link()* considers the hierarchy.