• Resolved FranciscoVillen

    (@franciscovillen)


    Hi,
    When I open a link of the calendar view in my web, for example:
    web.com/eventos
    web.com/eventos/2014-09/
    etc…

    The event (link and text) displayed on the month is the last event published (which could be in another month) although its tooltip window shows the correct event text and event thumbnail.

    If I navigate to another month using the month navigation, after ajax call, the events are reloaded correctly.

    Looking the code, tha part which is bugged is /plugins/the-events-calendar/views/month/single-event.php in:

    <h3 class="tribe-events-month-event-title entry-title summary"><a href="<?php tribe_event_link( $post ); ?>" class="url"><?php the_title() ?></a></h3>

    The functions tribe_event_link($post) and the_title() are taking the last event published, not the events of the month.

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter FranciscoVillen

    (@franciscovillen)

    I have solved this bug coding the file /wp-content/themes/mytheme/tribe-events/month/single-event.php:

    In line 22 after “global $post;” I have added two variables:

    $enlaceEvento = tribe_get_event_link( $post );
    $textoEvento = get_the_title();

    In line 196 I use these variables:

    <h3 class="tribe-events-month-event-title entry-title summary"><a href="<?php echo $enlaceEvento; ?>" class="url"><?php echo $textoEvento; ?></a></h3>

    I don’t know why using the functions directly (without saving in variables) doesn’t works .

    Brook

    (@brook-tribe)

    Howdy FranciscoVillen,

    Good call on modifying that. It is a clever way to make your theme compatible with TEC.

    This sort of thing typically happens when a theme is designed in a slightly unusual way. For instance, something similar happens when a theme puts the_title() in header.php instead of any of the content files. Because of its location it is outside of the post loop, and can not be tapped into the usual way by a plugin. But, workaround like yours force it to work.

    Glad you got this working!

    – Brook

    I am having the Exact same Problem, but unfortunately haven’t the skill to fix like the previous poster

    Brook

    (@brook-tribe)

    I am sorry to hear that NHCC. I wish there was an easier way. The truth is you need to either get someone on hand who does have the skill to fix this for you after taking a look at the code powering your website, or you could switch themes. I realize that both are not ideal options, but unfortunately they are the two most promising ones.

    If you would like to try getting free volunteer eyeballs on your site from a skilled dev, you should open a new topic on wp.org. Please note as stated in the forum rules that Modern Tribe does not offer support integrations like this in these free forums, but we would definitely welcome anyone of the community memebers to help you with issues like that which is semi-common for the community on this site. In order for them to help though, I can almost guarantee they will need more info, like a link to your site, the name of the theme, and an example of the problem.

    Cheers!

    – Brook

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bug in calendar view (the last event posted is displayed in incorrect date)’ is closed to new replies.