Home › Forums › Welcome! › Pre-Sales Questions › same question: can I display events on the homepage?
- This topic has 4 replies, 2 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
May 14, 2015 at 7:25 pm #962822
Andrea
GuestHi
I am interested in your plugin which works for me really well…until I have to display events on the homepage.
I have seen this is a recurring question from many on this forum.
However, I do not want to show the full calendar on the homepage…I would like to display an excerpt of the upcoming events…maybe 3 or 4 of them on the homepage…I cannot use the sidebar so the widget doesn’t help…
Any solution that you may recommend to accomplish this since there is no short-code yet…?
I look forward to hearing back from you…thank you!
AndreaMay 15, 2015 at 5:30 am #962866George
ParticipantHey Andrea,
Thanks for reaching out to us here – I’m curious though, you mention this being a common question on the forum, can you link to some other threads you’ve seen that are like this? Just for reference – I want to make sure there’s not a software bug or something, which seeing all these threads will help determine, because they could all sound similar based on title but have different goals in each and be mostly unrelated…
Now, as for your specific questions themselves, there are a few things that come to mind in response to them. First is that you can use the widgets in places even where there isn’t an explicitly-defined sidebar. You can do this with WordPress’ built-in function called the_widget(). For example, this code will display the List widget included in The Events Calendar core plugin:
the_widget( 'Tribe__Events__List_Widget' );If you need very granular control over how many events display, how they look, etc., then unfortunately the best/only way to do this is by writing custom code that uses our tribe_get_events() function. We don’t offer support for custom code, but you can learn about that function here → https://theeventscalendar.com/function/tribe_get_events/
And the function itself is a wrapper for WordPress’ own get_posts() function, so to learn even more, check out documentation for that plugin here → https://codex.wordpress.org/Template_Tags/get_posts
Cheers!
GeorgeMay 18, 2015 at 4:10 pm #963474Andrea
GuestThank you for your reply George
I was trying to achieve something similar to this – check the homepage of http://salsalovers.com/ which is in your showcase…
wondering if that is custom coded or can be achieved using the PRO version?
Please let me know
thank youMay 19, 2015 at 3:04 pm #963730George
ParticipantHey Andrea,
It can indeed be custom coded with Events Pro, but is not something that just simply setting some Events options would enable by itself. Custom coding is needed.
I hope that helps!
Cheers,
GeorgeJuly 7, 2015 at 6:32 am #984169Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘same question: can I display events on the homepage?’ is closed to new replies.
