shortcode not functioning

Home Forums Calendar Products Events Calendar PRO shortcode not functioning

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1279867
    Luis Malbas
    Participant

    [tribe_events view=”week” date=”2016-05-08″] is not displaying that week’s events. You can find the page here: http://tldc.us/. I’ve been searching and trying to find a solution, but nothing’s worked. I just purchased this license last week. Can you please help?

    #1280624
    Geoff B.
    Member

    Good evening Luis and welcome to the Events Calendar Support forum!

    Thank you for reaching out to us.

    We are sorry to hear about the week view not displaying properly on your site.
    I would love to help you with this topic.

    Apparently you have managed to get the photo view embedded in the meantime. Kudos for that.

    Would it be possible to see the broken code in action ? Perhaps on a Password protected page ?

    Typically, when the dates are incorrect, it is usually because of:

    1. Date format incompatibility (the date format of WordPress, the Events Calendar and even Divi all need to be in sync)
    2. The use of improper quote marks (as described here: https://theeventscalendar.com/knowledgebase/embedding-calendar-views-tribe_events-shortcode/)

    Hang in there!

    Geoff B.

    #1280641
    Luis Malbas
    Participant

    This reply is private.

    #1280920
    Geoff B.
    Member

    Good afternoon Luis,

    Thank you for the example.
    I believe I know what the issue is.

    Under Events -> Settings -> Display, you currently only have the “photo” view enabled.
    As such, you will not be able to display the full shortcode of the week view.

    You will have to enable the week view there to be able to use the shortcode.

    You can however still use the “This week’s events” widget, should you want to https://theeventscalendar.com/knowledgebase/pro-widget-shortcodes/.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1281034
    Luis Malbas
    Participant

    To clarify, are you saying I can’t use Photo View for this week’s events? There is no shortcode available for that?

    Also, when I change the defaults to week view, it displays last week’s calendar but shows nothing in the schedule?

    #1281825
    Geoff B.
    Member

    Good afternoon Luis,

    Thank you for writing back.

    To clarify, are you saying I can’t use Photo View for this week’s events? There is no shortcode available for that?

    What I am saying is that tribe_events view=”week” is not meant to work with the photo view, but rather the week view.

    This is why the current shortcode is not working on your site. Since the Events Calendar does not “know” what to do with a “week” attribute when the week view is not enabled, it simply returns the default view.

    With that in mind, there are some attributes that do work with the photo view.

    Something like tribe_events view=”photo” date=”2017-08-21″ will work.

    All the possible attributes for each view are listed here: https://theeventscalendar.com/knowledgebase/embedding-calendar-views-tribe_events-shortcode/

    So in short, there is no built-in attribute that forces the photo view to display the current week only.

    However, there are different ways to achieve this goal:

    1. Using a code snippet in your theme’s functions.php. You could adapt the following: https://gist.github.com/elimn/d034dfddb9be206d9cc1#file-tribe_set_default_date-php . Perhaps combined with something that limits the posts shown: https://gist.github.com/elimn/8fd157765d5aea751e66526183b8c8c7#file-tribe_photo_posts_per_page-php
    2. You could simply customize the “This week’s events” to display the featured image. You might want to read our Themer’s guide to get a sense of how that works.

    In short, I believe that with a bit of customization, your calendar should behave to your liking.

    Also, when I change the defaults to week view, it displays last week’s calendar but shows nothing in the schedule?

    Would it be possible to see this in action somehow ? Perhaps on a password protected page ?

     

    Best regards,

    Geoff B.

    #1291862
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘shortcode not functioning’ is closed to new replies.