I have been living with the fact that my “schedule” page posts oldest events at the top. Since everything else worked awesome, I was living with it, but in the past week the newer posts were bumped off the main page and it stopped working for me.
I have hunted and gathered off the forum, and came up with a small fix for it with trial and error and felt a plain English addendum to my previous post was necessary for anyone who doesn’t understand a lot of code.
If you wish for your list view calendar template page to display only upcoming events, open your template and find the code:
<?php query_posts('category_name=events'); ?>
Replace it entirely with this:
<?php query_posts('category_name=events&eventDisplay=upcoming'); ?>
This will give you a page that displays entries or events out of the calendar set in the future. However many posts per page you have set will display as usual, as far as I can tell, and you can still navigate to list/calendar and past events via a link your page should display if you followed all my previous steps, I did insert a <br/>
in my template page before the </div>
tags, but that was purely cosmetic. Code Sourced from This
I have not messed with a past event display, since I figure wp’s basic archiving function covers that fairly well, and I know the important events are the ones that are still going to happen.
I assume that a display of past events can be made by replacing:
category_name=events&eventDisplay=upcoming
with category_name=events&eventDisplay=past
but I could be wrong. XD;
Hope it helps if anyone is having the same issue.
@gizmo81 –
I did not have that problem in any of my experiments. So I’m not sure how much help I will be, but I can think of two places to look on a ‘Murphey’s Law’ basis. I also consider myself average in code, but possibly not as good as you are looking for:
1. Have you updated your plug-in or word press version between coding the template and putting it up on the site for use? fix – remake your template with the latest version of code.
2. Have you been altering code in files other than your specifically created page template? fix – reset it all to default, and start again. Altering your main site header can make things look exactly how you want them too, but can really alter your site function across the board. I have stuck to only altering my separate page template file, and have had no unexpected errors in my site function aside from making the specific page work as desired. Is it possible you turned the actual file for one of your calendar views into a template by accident?
Just some starting places, I save original versions of all my files to make sure I can go back to defaults…I hope I helped you a bit, Good Luck!