Event Calender disappears when no events are in that month

Home Forums Calendar Products Events Calendar PRO Event Calender disappears when no events are in that month

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #15821
    Jeremy
    Participant

    Just installed the plugin and the pro version ontop and i’ve got the problem of not seeing any calender if i go to a month that has no items in it.

    An example can be found here http://www.paradisefirstaid.dreamhosters.com/courses/2016-02/

    also i’d like to rename category to area is there an easy option or is it a hack i’ll need to implement?
    eg http://www.paradisefirstaid.dreamhosters.com/courses/category/brisbane/ to http://www.paradisefirstaid.dreamhosters.com/courses/area/brisbane/
    how can i solve this, patches and hacks are ok 😉

    #15840
    Rob
    Member

    Hey Jeremy. Thanks for your purchase, and for the note. On your first issue: my guess is, if you’re running 2.0.4 for both the free The Events Calendar and the PRO add-on, that this is almost certainly being caused by a conflict with another plugin or your theme. I saw the site is running rather slow in general…are you in a position where you can test deactivation of other plugins and reverting to the default 2011 theme as needed, to see where the conflict lies?

    On the category renaming…best way I can see right off the bat would be to just modify the translation file. Have you considered giving that a go?

    #16175
    Jeremy
    Participant

    Hi Rob,

    Just tracked down the php code that made it disappear.

    global $query_string;
    query_posts($query_string . “&page_id=”.$current_page_id);

    the page.php was trying to get the current page id/post id but when it failed to collect, it would call query_posts. this would lose the blank events calender posts that were lined up.

    now that i’ve got that corrected, it seems the navigation for the grid goes funky when there is nothing to display :/

    #16184
    Jeremy
    Participant

    found my problem code.

    The theme removed from the_content, wpautop and wptexturize. It then placed its own formatter in. This formatter add p’s and br everywhere which then stuff up the navigation bar.

    I corrected this by looking for tribe-events and jumping out of the formatter function.

    function pp_formatter($content) {

    if ( strpos($content, ‘tribe-events’)!== false )
    {
    return $content;
    }

    // Remove the 2 main auto-formatters
    remove_filter(‘the_content’, ‘wpautop’);
    remove_filter(‘the_content’, ‘wptexturize’);

    // Before displaying for viewing, apply this function
    add_filter(‘the_content’, ‘pp_formatter’, 99);
    add_filter(‘widget_text’, ‘pp_formatter’, 99);

    #16185
    Armando
    Participant

    I have a similar situation, I am having a hard time making ECP work with WPML.

    When I see list of events, it displays fine in English, but if I select Spanish or other language I get a 404.

    I don’t know where else to look for and can’t seem to find any work around, I tired Jeremy’s code but didn’t work.

    Thanks!

    #16186
    Armando
    Participant

    Sorry, meant to say “tried Jeremy’s code” not tired 🙂

    #16187
    Jeremy
    Participant

    The Code that i changed was in Hermes from ThemeForest.

    You might have something simliar, i also debugged the query with

    print_R($wp_query);
    on the page.php

    #16193
    Armando
    Participant

    I think that my problem is the WPML does a hook to the query_posts somewhere and that prevents me from displaying all events the way I want it. I will look into to how to remove or override that hook, at least for the list.php template.

    #16208
    Rob
    Member

    Glad to hear you figured out the conflict, here, Jeremy. Armando: will you report back once you’ve had a chance to test against that, to see if you need anything else from us?

    #975869
    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 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Event Calender disappears when no events are in that month’ is closed to new replies.