Home › Forums › Calendar Products › Events Calendar PRO › Event Calender disappears when no events are in that month
- This topic has 9 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
February 28, 2012 at 12:34 am #15821
Jeremy
ParticipantJust 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 😉February 28, 2012 at 7:38 am #15840Rob
MemberHey 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?
March 3, 2012 at 12:31 am #16175Jeremy
ParticipantHi 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 :/
March 3, 2012 at 11:59 pm #16184Jeremy
Participantfound 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);March 4, 2012 at 12:12 am #16185Armando
ParticipantI 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!
March 4, 2012 at 12:13 am #16186Armando
ParticipantSorry, meant to say “tried Jeremy’s code” not tired 🙂
March 4, 2012 at 3:07 am #16187Jeremy
ParticipantThe 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.phpMarch 4, 2012 at 12:21 pm #16193Armando
ParticipantI 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.
March 5, 2012 at 8:17 am #16208Rob
MemberGlad 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?
July 5, 2015 at 5:00 pm #975869Support 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 ‘Event Calender disappears when no events are in that month’ is closed to new replies.
