Home › Forums › Calendar Products › Events Calendar PRO › Featured events vs Upcoming events
- This topic has 3 replies, 4 voices, and was last updated 13 years, 7 months ago by
Leah.
-
AuthorPosts
-
August 9, 2012 at 8:30 pm #23504
Abdylas
MemberHi,
This is a customization question so I’m not sure if it is eligible for support. Anyway, here is my scenario. I want to display “featured events” on homepage. These will be events that are worthwhile to be shown on the homepage. Currently I could successfully display them on the homepage (via this help https://theeventscalendar.com/support/forums/topic/display-events-on-homepage-2/). But at the moment, it’s displaying “upcoming events”. How can I display only featured events?
I’m guessing I could create a category called “Featured Events”, and then pull only these events (provided that they are future events and not past events, just like upcoming events logic at the moment) and display them on the homepage.
But since i’m not a coder, I don’t know how to do it. Any help to the right direction would be appreciated.
August 10, 2012 at 3:33 am #23521Joyce Grace
MemberHello Abdylas,
Thanks for posting here. Since it is a customization issue, I will leave it to the community to see if they can help you. It does go outside the scope of our support to help with customization.
That being said, we know a lot of people want to customize, so we do have a documentation guide that might help: https://theeventscalendar.com/support/documentation
We also have a Themer’s guide: https://theeventscalendar.com/themers-guide-to-the-events-calendar/
Now, the tutorial on integrating Genesis with the Events Calendar is great for non-coders, and even if you theme is not using the Genesis framework, the tutorial sheds a lot of light on principles that would apply to any theme. I strongly recommend you check it out! https://theeventscalendar.com/tutorial-integrating-the-events-calendar-w-genesis/
Thanks again for posting! If you figure this out and learn something new, do share it with the community – I’m sure more people will benefit from it 🙂
August 30, 2012 at 10:25 pm #24379Ryan
ParticipantAbdylas,
That’s exactly how I did it: I created a category called Featured Events, and called that on the home page to only display the events that were labelled with that category. Here’s my code: https://gist.github.com/3549327 based on code I plucked from the third example in this support document: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events
Make sure that your category slug is the same as whatever you put in place of where I’ve got “featured-event”. Hope that helps.September 25, 2012 at 11:44 am #25694Leah
MemberThanks for posting your code, Ryan!
Abdylas, did that help you? -
AuthorPosts
- The topic ‘Featured events vs Upcoming events’ is closed to new replies.
