Support

Home Forums Event Espresso Premium EE3 Calender Does Not Display

EE3 Calender Does Not Display

Posted: September 18, 2014 at 11:56 am

Viewing 25 reply threads


Jerry Bold

September 18, 2014 at 11:56 am

I have the paid Business version of the plugin installed and am calling the shortcode in multiple places on the website but it does not show. The proper html tagged div ids do get constructed, (espresso_calendar, ee-calendar-ajax-loader-dv) but the rest of the calender is not implemented. I am running a custom created theme that has Bootstrap Responsive css and js involved but otherwise quite vanilla. (I’ve tried echoing the shortcodes, adding to the content, and utilizing through the widget management, all with no success)

Wordpress: 3.8.1
EE3 3.1.36.5.P (New Installation)

site is private while in development; in a private email I can give url and access credentials


Lorenzo Orlando Caum

  • Support Staff

September 18, 2014 at 12:21 pm

Hi,

Could you temporarily move the site into defaults (default theme, deactivate all plugins, reactivate only Event Espresso and calendar add-on) and then reverse your steps until you find the source of the conflict?


Lorenzo


Jerry Bold

September 18, 2014 at 12:52 pm

Considering the only plugins running at the time were EE3 plugins, I would be pretty disheartened to know that your own plugins would cause a conflict. That being said, I just disabled everything, went to the default twentytwelve team, inserted the shortcode (called by <?php echo do_shortcode(‘[ESPRESSO_CALENDAR]’);?>) and still nothing.


Jerry Bold

September 18, 2014 at 12:55 pm

***Everything meaning except Espresso base and Espresso Calendar***


Josh

  • Support Staff

September 18, 2014 at 1:28 pm

Hi Jerry,

Can you try placing the shortcode on a page?

[ESPRESSO_CALENDAR]

If you need to display the calendar directly from a php template, you’ll need to add a few extra lines of code. This is from the EE3 calendar documentation:



https://eventespresso.com/wiki/events-calendar-add-on/#shortcode-page-template


Jerry Bold

September 18, 2014 at 2:38 pm

Josh –
Page_content located shortcodes were tried before any attempts at hardcoding it. This is the current code for the default template for the page I’m using to test. It has your global variable and the do_shortcode all proper, but no calendar displays:

<?php get_header(); ?>
<?php
global $is_espresso_calendar;
$is_espresso_calendar = TRUE;
?>
<div id=”primary” class=”site-content”>
<div id=”content” role=”main”>

<?php while ( have_posts() ) : the_post(); ?>
<?php echo do_shortcode(‘[ESPRESSO_CALENDAR]’);?>
<?php endwhile; // end of the loop. ?>

</div><!– #content –>
</div><!– #primary –>

<?php get_sidebar(); ?>
<?php get_footer(); ?>

I have read your Documentation, watched the video etc. before posting here. I’m a developer and would not contact support unless absolutely necessary.

Once again, I can give one of your people access to the site front to help troubleshoot if they’d like, I will need an email address to send credentials.


Jerry Bold

September 18, 2014 at 2:51 pm

Also, I already checked for javascript errors, the <p> tag errors (negative on both) and there is no jquery or google api loading in the header (or anywhere).


Josh

  • Support Staff

September 18, 2014 at 4:53 pm

Hi Jerry,

That is likely the problem. You’ll need to make sure the jQuery library is loading in the head of the document. We can verify whether it’s a jQuery issue or not if you can send credential via this secure form:

https://eventespresso.com/send-login-details/


Jerry Bold

September 22, 2014 at 9:36 am

No Josh, I have had jQuery load in the header through most of Sept. 18th when I first messaged you guys. I removed my manual call to jQuery after reading your wiki about shortcodes It makes several suggestions to enqueu_scripts etc. none of which solved my problem. I have succeded in getting the calender to show by creating my own widget area, adding your widget to it and styling from the outside-in. However, this is not optimal that NOT I (NOR MY CLIENT)CAN CALL THE SHORTCODE no matter what. I have submitted my credentials to you on the send-login-details page


Josh

  • Support Staff

September 22, 2014 at 11:25 am

Hi Jerry,

A few points:

1) The WP admin credentials you sent return “Invalid Username”. Can you doublecheck the credentials you sent and resend?

2) The jQuery library is being loaded twice on the site. It should be loaded only once to avoid conflicts.


Jerry Bold

September 22, 2014 at 11:30 am

I removed the header jquery call (that I had reinput at your last response – shortcodes still don’t work.) and my apologies on the admin-user; I had set it up but never confirmed


Jerry Bold

September 22, 2014 at 11:49 am

Once again, removing the header jquery only succeeds in breaking the slider. It does not, in fact, fix anything concerning your plugin.


Josh

  • Support Staff

September 22, 2014 at 12:15 pm

Hi Jerry,

Did you notice that you added the $is_espresso_calendar code after the call to get_header() ?

get_header(); ?>
<?php
global $is_espresso_calendar;
$is_espresso_calendar = TRUE;
?>

It needs to be before the call to get_header() so the scripts get added to the header, like this:

global $is_espresso_calendar;
$is_espresso_calendar = TRUE;
get_header(); ?>

Along with that, I created a test page on your site (yoursite.com/test-calendar) which displays a calendar on the page with the standard EE calendar shortcode within the page template. I’m not sure why the standard shortcode isn’t working when you try it.


Jerry Bold

September 22, 2014 at 12:19 pm

Yes, I’ve tested all of your plugin’s shortcodes as well as other plugins’ shortcodes. I have determined only EE3’s shortcodes have an issue (see /contact-us/ page for successful shortcode called in content of page, no frills/php coding).

This is the bigger issue I am hoping to get resolved; if you look at the front page, I have custom coded a sidebar widget for the event list which I had tried to call as a shortcode (paginated@ 10 and displaying most recent first).

The event list will NOT work with shortcode, but when I push it through the widget interface it works easily (same as with the calendar.)


Jerry Bold

September 22, 2014 at 12:23 pm

Can the aforementioned code be added to the beginning of the header? And is there common theme here with shortcodes needing some sort of extra push?

Is there something where I can simply call all of these globals before the page loads everytime so I can get down to crafting the rest of the front end skeleton.


Josh

  • Support Staff

September 22, 2014 at 12:49 pm

Hi Jerry,

This sounds like a different issue. Can you post a gist of the code you’re using for the front page template, and please be sure to include the full template so I can see the code in context? Thanks.


Jerry Bold

September 22, 2014 at 1:06 pm

I CANNOT RESPOND BECAUSE OF YOUR HOSTING PROVIDER


Jerry Bold

September 22, 2014 at 1:13 pm

I have been prevented from posting to this forum or creating a new topic because of the code within my post.


Jerry Bold

September 22, 2014 at 1:14 pm

So unless I get an email address to send the template code to, I cannot post it here.


Jerry Bold

September 22, 2014 at 1:22 pm

redacted – Event Espresso support team – LOC


Jerry Bold

September 22, 2014 at 1:24 pm

That is part of the front page. dynamic_sidebar(‘sidebar-2’) and get_sidebar() both work, but the shortcodes do not. Additionally, on the /class-registration/ page you can see the shortcode within the content of the page does not get executed correctly either.


Josh

  • Support Staff

September 22, 2014 at 1:26 pm

Hi Jerry,

Please post the entire contents of the template file in a github gist or a pastebin, then please post a link to the gist/pastebin here.


Jerry Bold

September 22, 2014 at 1:30 pm

http://pastebin.com/FCK4jCK7


Josh

  • Support Staff

September 22, 2014 at 2:01 pm

Hi Jerry,

After reviewing the code that you posted and the page it’s running on, I can report back to you that the shortcode is indeed parsing. It’s displaying the one event that’s available for registration. Were you expecting it to do something different?

Along with that, I checked the class-registration page and it is also displaying the one event that’s set up on the site and available for registration. Again, were you expecting the shortcode to display something else? If so, please let us know, and explain the problem as specifically as you can.


Jerry Bold

September 22, 2014 at 4:03 pm

I’m looking through it again, because I had made another Class that did not come up in the Feeds/didnt show on the registration page. Is there some sort of error that occurs if I don’t give it a specific class category designation?


Josh

  • Support Staff

September 23, 2014 at 8:48 am

Hi Jerry,

The reason the other class does not display in the list is because the Registration End date has passed. You’ll note that when a class is no longer open for registration, it automatically disappears from the list.

If you wish to include classes that are past their registration end date in the event list, you can add the show_expired=true parameter to the event list shortcode.

https://eventespresso.com/wiki/shortcodes-template-variables/

Viewing 25 reply threads

The support post ‘EE3 Calender Does Not Display’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso