Home › Forums › Calendar Products › Events Calendar PRO › Past Events
- This topic has 25 replies, 2 voices, and was last updated 11 years ago by
Josh.
-
AuthorPosts
-
October 6, 2014 at 6:12 pm #792770
Chris Claghorn
ParticipantThis reply is private.
October 7, 2014 at 8:14 pm #795348Josh
ParticipantHello claghorn,
Thanks for following up with us!
I checked out the site and the plugin appears to be working properly. The issue you’re noticing with the styling is due to a possible theme conflict. There may be some possible solutions for theme compatibility with your current theme found here.
The reason the past events query doesn’t work on default page templates is because there is nothing in the template for the query variable (?tribe_event_display=past) to modify. With the default event template, there are sections within the code that allows the query variable to modify the query that is being displayed.
Thanks!
October 8, 2014 at 6:23 pm #797557Chris Claghorn
ParticipantWell that’s not going to help for the time being. A little over my head.
When I choose “Default Page View” in Display Settings the past events won’t list but it at least uses my current CSS. Why doesn’t “Default Events View” use my CSS? Is there a setting for me to have both views use the “Default Page View” CSS?
October 8, 2014 at 8:42 pm #797776Josh
ParticipantHello claghorn,
It’s not necessarily a styling issue as it is a structural one. If you open the plugin files for the core Events Calendar plugin and navigate to “views” -> “default-template.php” and then compare to the
page.phpfile within your current theme. You’ll notice that there is a difference in the containing wrapper. Your theme may be styling based on wrappers that are applied to yourpage.phpfile but not the default template from the plugin.A further option that may work would be to follow the Themer’s Guide and copy the
default-template.phpfile from the plugin into your theme and copy the wrapper from your theme’spage.phpfile into this newdefault-template.phpfile. You could then try the Default Events Template again within the plugin settings.Let me know if this helps.
Thanks!
October 12, 2014 at 4:36 pm #805675Chris Claghorn
ParticipantActually, this link: https://tri.be/support/forums/topic/ultimatum-integration-2/ helped.
Now is there a way to display them from top to bottom as latest to newest?October 13, 2014 at 8:52 am #807670Josh
ParticipantHello claghorn,
Thanks for following up with us! I’m glad that other post was able to help!
You can change the order of events by modifying the query that displays the events. There is some great information at the bottom of this thread that may help with making this customization.
Thanks!
October 13, 2014 at 9:43 am #807801Chris Claghorn
ParticipantWhich file do I modify the code of?
October 15, 2014 at 11:02 am #812590Josh
ParticipantHello claghorn,
You should be able to accomplish the customization you’re looking for by targeting the events query and using
<a href="http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts" target="_blank">pre_get_posts</a>within your theme’sfunctions.phpfile.When adding be sure to add your code immediately after the opening
<?phptag or immediately before the closing ‘?>’ tag within yourfunctions.phpfile.Thanks!
October 15, 2014 at 12:47 pm #812816Chris Claghorn
ParticipantI’m a noob when it come to hand coding PHP, do I need to place that into an echo command?
October 16, 2014 at 8:25 pm #815239Josh
ParticipantHello claghorn,
No problem. This doesn’t need to be echoed within the file.
You’ll need to create a function that hooks to the pre_get_post() hook. Within that function you’ll modify the “order” query argument in a very similar manner as the snippet supplied in this thread.
This should get you pointed in the right direction for modifying the order of events.
Thanks!
April 28, 2015 at 8:36 am #959004Josh
ParticipantHey,
It’s been a while since we’ve heard from you on this thread.
I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new one.
Thanks!
-
AuthorPosts
- The topic ‘Past Events’ is closed to new replies.
