Home › Forums › Calendar Products › Events Calendar PRO › event order on homepage
- This topic has 4 replies, 2 voices, and was last updated 12 years, 3 months ago by
Kelly.
-
AuthorPosts
-
January 7, 2014 at 7:21 am #87787
osmans84
ParticipantHi guys
a fairly simple problem I think. Using cal pro and woo tickets.
I have the settings on for events to be shown on the home page. All ok so far.The problem is that the events are displayed in the wrong order on the homepage. The homepage shows the event furthest away at the top of the page. For example, we have 2 events on the site at the moment. One in March, one in June.
But they display on the homepage in this order
June
march
obviously we want to promote the most recent event as a priority.
is there a way to edit a setting so that the nearest event is at the top – effectively reversing the current ordering of events on homepage.any help would be much appreciated
January 7, 2014 at 7:29 am #87792osmans84
Participantthe usual way i would resolve this with a standard post, is to change the date the post was published, however this doesn’t seem to be possible as calendar pro seems to over-ride that with the event date?
January 7, 2014 at 5:20 pm #88112Kelly
ParticipantHi, osmans84. Very intriguing idea!
It sounds like you’re using the Include events in blog roll feature. The way this is configured is for the events to show up as posts with the dates of the events as the published date. Because the blog roll is always in reverse chronological order (oldest posts are lower than newer ones), I’m not sure how you’d change that WP behavior to allow for the behavior you describe.
If you’re looking to show upcoming events, a better bet may be to simply use the main events page in list view. Another option would be to repurpose the list widget for that.
Do you think either of those could work for you?
January 10, 2014 at 3:49 am #90041osmans84
ParticipantHi Kelly
Yes I am using “include events in blog roll”
I have been searching on several different forums on how to change the automatic “reverse chronological order” without any luck. Most forums seem to point to the index.php – but none of the code seems recognizable to me and my limited experience.The main events page is in list view already -(that page is ok – currently using the category “events-calendar/” in a custom menu)
Is there a way I can set the homepage as the main events page? Although even if I did I imagine the auto ordering as above would take over again.
If anyone can help my index.php code is pasted below (desperately, hopefully – thankful)
<?php $gallery_cat = get_option(‘simplepress_gallery’);
if (is_category()) $post_number = get_option(‘simplepress_catnum_posts’);
if (is_category($gallery_cat)) $post_number = (int) get_option(‘simplepress_gallery_posts’); ?>
<?php get_header(); ?>
<div id=”content”<?php if ( is_category( $gallery_cat ) && get_option( ‘simplepress_gallery_enable’ ) == “on” ) echo ” class=’full'”; ?>>
<div class=”content_wrap<?php if ( is_category( $gallery_cat ) && get_option( ‘simplepress_gallery_enable’ ) == “on” ) echo ” full”; ?>”>
<div class=”content_wrap<?php if ( is_category( $gallery_cat ) && get_option( ‘simplepress_gallery_enable’ ) == “on” ) echo ” full”; ?>”>
<div id=”posts”<?php if ( is_category( $gallery_cat ) && get_option( ‘simplepress_gallery_enable’ ) == “on” ) echo ” class=’et_gallery_category full'”; ?>>
<div id=”breadcrumbs”>
<?php get_template_part(‘includes/breadcrumbs’); ?>
</div>
<br class=”clear” /><?php if(is_category($gallery_cat) && get_option(‘simplepress_gallery_enable’) == “on”) { get_template_part(‘includes/gallery’); }
else { get_template_part(‘includes/entry’); } ?>
</div><!– #posts –>
<?php if(is_category($gallery_cat)) { } else { get_sidebar(); }; ?>
</div><!– .content_wrap –>
</div><!– .content_wrap –>
</div><!– #content –>
</div><!– .wrapper –>
<?php get_footer(); ?>January 10, 2014 at 10:33 am #90194Kelly
ParticipantHi, osmans84. I definitely understand your frustration. I’m afraid that I don’t have a perfect solution for you either.
One thing you could try is redirecting your traffic to the TEC page when they visit your site and making a template override to put your slider on the view(s) you want them to see the slider on. (For info on template overrides, please see our Themer’s Guide, linked in the sidebar.)
Alternatively, we do have a list of developers that we have could offer. Let me know if that’s something you’re interested in.
Good luck! 🙂
-
AuthorPosts
- The topic ‘event order on homepage’ is closed to new replies.
