Home › Forums › Calendar Products › Events Calendar PRO › [tribe_events] shortcode not working
- This topic has 7 replies, 2 voices, and was last updated 6 years, 5 months ago by Kevin Mayer.
-
AuthorPosts
-
October 10, 2017 at 5:47 pm #1361849Kevin MayerParticipant
I know it’s my theme. Most likely the functions.php file and something I’m calling through apply_action or apply filter that is messing things up. It’s a heavily customized theme that will display the calendar on the normal events archive page but not anywhere else with that short code. Mini calendar and events list work. It’s a child theme of Keratin and, in customizer, that theme and twenty-twelve work with all plugins active. What is happening is half the JavaScript Events calendar need isn’t written to the page when using the site’s theme. This applies to posts, pages, and custom posts types.
Other short codes, not created by the plugin, also work. These include custom shortcodes I’ve created as well as ones used by Shortcodes Ultimate.
BTW, this is a live, heavy traffic production site, so I’m limited to what I can and can’t turn off. Also, it is running on Plesk, not CPanel, if that makes any difference.
So what can I check for… HTML tag, wordpress function, etc, to see that the short code has what it needs?
October 11, 2017 at 8:55 pm #1362370VictorKeymasterHi Kevin!
Thanks for reaching out to us! Let me try to help you with this topic.
When viewing the page/post with that shortcode, do you see the shortcode being rendered or do you see the [tribe_events] text in it? Is this behaviour the same for posts and pages or does it change?
What happens if you set a different view for the shortcode like this:
[tribe_events view="day"]
Do you see a difference?Could you please share with us a link to a page/post where you are using the shortcode in? We’ll have a closer inspection and see if we can spot anything from there.
Thanks,
VictorOctober 11, 2017 at 11:11 pm #1362420Kevin MayerParticipantHi Victor:
No difference if attributes are added to the shortcode.
Here’s a link to the page: http://www.canyoncreek.com/a-draft-page/. It should have a test event on it that lasts from October 23rd to October 30th.
BTW, the site is using the Cloudfront CDN. I’ve eliminated that for all three Tribe plugins and it didn’t make a difference.
Here’s the log from Chrome’s Console:
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
tribe-events.min.js?ver=4.6.1:1 [“TEC Debug: Tribe Events JS init, Init Timer started from tribe-events.js.”]
tribe-events.min.js?ver=4.6.1:1 TEC Debug: Browser and events settings information:
tribe-events.min.js?ver=4.6.1:1 [“TEC Debug: tribe-events.js successfully loaded”]0: “TEC Debug: tribe-events.js successfully loaded”length: 1__proto__: Array(0)
tribe-events.min.js?ver=4.6.1:1 [“TEC Debug: tribe-events-pro.js successfully loaded”]0: “TEC Debug: tribe-events-pro.js successfully loaded”length: 1__proto__: Array(0)
tribe-events.min.js?ver=4.6.1:1 [“TEC Debug: tribe-events-ajax-maps.js successfully loaded”]0: “TEC Debug: tribe-events-ajax-maps.js successfully loaded”length: 1__proto__: Array(0)
tribe-events.min.js?ver=4.6.1:1 (2) [“TEC Debug: bootstrapDatepicker was just initialized in “tribe-events-bar.js” on:”, a.fn.init]0: “TEC Debug: bootstrapDatepicker was just initialized in “tribe-events-bar.js” on:”1: a.fn.init {selector: “”}length: 2__proto__: Array(0)
tribe-events.min.js?ver=4.6.1:1 [“TEC Debug: tribe-events-bar.js successfully loaded”]
tribe-events.min.js?ver=4.6.1:1 [“TEC Debug: tribe-events-ajax-calendar.js successfully loaded, Tribe Events Init finished”]0: “TEC Debug: tribe-events-ajax-calendar.js successfully loaded, Tribe Events Init finished”length: 1__proto__: Array(0)
tribe-events.min.js?ver=4.6.1:1 Tribe JS Init Timer: 0ms
util.js:229 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
WB.j @ util.js:229
(anonymous) @ js?ver=0584f128f53b766d5b8062808826df1a:146
(anonymous) @ js?ver=0584f128f53b766d5b8062808826df1a:63
(anonymous) @ js?ver=0584f128f53b766d5b8062808826df1a:61
(anonymous) @ js?ver=0584f128f53b766d5b8062808826df1a:63
(anonymous) @ js?ver=0584f128f53b766d5b8062808826df1a:122
(anonymous) @ js?ver=0584f128f53b766d5b8062808826df1a:61
(anonymous) @ js?ver=0584f128f53b766d5b8062808826df1a:122
fe @ js?ver=0584f128f53b766d5b8062808826df1a:63
ee.na @ js?ver=0584f128f53b766d5b8062808826df1a:122
(anonymous) @ stats.js:1I was going to give the console output from the [tribe_events_list] shortcode that we are using on a different page as a comparison, but that didn’t produce anything in the console.
October 12, 2017 at 7:45 am #1362596VictorKeymasterHi Kevin!
Thanks for sending over that info the the link for us to inspect.
It looks like the scripts and styles are properly loaded in the frontend, but there is no output for the shortcode.
Are you using a page builder for that page? If so, please try creating a new page without using the page builder. Also try selecting a different template for the page if that is available for your theme.
Another thing you could try is selecting a different template under Events > Settings > Display tab and choose another option for Events Template.
Do you see any difference when trying that? Let us know.
Thanks,
VictorOctober 13, 2017 at 2:21 pm #1363483Kevin MayerParticipantHi Victor:
Nope, no page builder, just the regular old TinyMCE.
If you look at http://www.canyoncreek.com/event/test-event/ – You’ll see it’s different than a normal page. That’s because I’ve set Default Events Template as the events template and Full Styles as the default stylesheet for events template. How do I add the Default Events Template to the Page Attributes of a regular WordPress page? In other words, I want to create a normal WordPress Template based on it, so I can use it on the pages that I know I’m going to have anything Events Calendar shortcodes on.
October 16, 2017 at 7:19 am #1364128VictorKeymasterHi Kevin!
Thanks for clearing that out.
You could try creating a custom template to display that page and see if anything changes. There is a good article about custom templates here > https://developer.wordpress.org/themes/template-files-section/page-template-files/
I’d suggest you get in touch with the theme authors to see if they can provide some insight on this issue.
I’m not sure exactly what could be causing this. It can be related to a theme conflict, but there is also a chance of a plugin conflict. The right approach to identify the source of these type of issues would be to test for conflicts > https://theeventscalendar.com/knowledgebase/testing-for-conflicts/.
You mentioned you could not make much testing on the live site, so I’d recommend you set up a staging/dev site where you could perform all those tests without disrupting the live site.
From our side I can offer you send us a copy of your theme (in a private reply) and I will try to reproduce the issue on my own installation to see what I can find.
Let us know about it.
Thanks,
VictorNovember 7, 2017 at 8:35 am #1376976Support DroidKeymasterHey 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 -
AuthorPosts
- The topic ‘[tribe_events] shortcode not working’ is closed to new replies.