same question: can I display events on the homepage?

Home Forums Welcome! Pre-Sales Questions same question: can I display events on the homepage?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #962822
    Andrea
    Guest

    Hi
    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!
    Andrea

    #962866
    George
    Participant

    Hey 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!
    George

    #963474
    Andrea
    Guest

    Thank 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 you

    #963730
    George
    Participant

    Hey 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,
    George

    #984169
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘same question: can I display events on the homepage?’ is closed to new replies.