Home › Forums › Calendar Products › Events Calendar PRO › Month view issue when using shortcode in event
- This topic has 6 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
March 14, 2015 at 3:55 pm #948373
asynadak
ParticipantDear sir/madam,
I am having a bit of a problem in month view when using shortcodes in an event. What’s happening is that it shows up a… script (or something)! You can check it live here: http://www.socialtalk.gr/simtec/events/2015-05/ Events with no shortcodes are shown correctly (navigate to previous months to check).
The shortcode I am using is:
[countdown date=2015/05/12]
[wd_contact_form id=”18″]
[/countdown]The first is from “Easy Timer” which helps me display a sign-up form only before the event. The second shortcode is from “Contact Form Maker” which shows the sign up form.
Do you have anything in mind that can resolve this issue?
Thank you a lot in advance.
With regards,March 15, 2015 at 10:53 am #948436George
ParticipantHi Aggelos,
I’m sorry you’re running into problems here. I’ve tried recreating this issue on my local site and cannot do so – so the first thing I’m curious about is what you find if you test for theme or plugin conflicts on your site.
To do this, go through all of the steps listed in our knowledgebase article on the topic here → https://theeventscalendar.com/knowledgebase/testing-for-conflicts/
Let us know what you find in detail, and we can proceed from there. In the meantime, I will continue trying to recreate this issue.
Thank you!
GeorgeMarch 15, 2015 at 11:10 am #948440asynadak
ParticipantHello George,
thank you for your quick reply. The problem seems to be on the contact form maker plugin (https://wordpress.org/plugins/contact-form-maker/). When it is deactivated it works fine. Is there any work around?
Thank you once again.
With regards,March 16, 2015 at 2:49 pm #948694George
ParticipantHey Aggelos,
Thanks for testing and confirming that this happens only if that plugin is active. I’ve got two suggestions here.
First is to reach out to the plugin developer and let them know about these issues. Their plugin page has a pretty bold call-out for bug reports and the like, so it’s worth hitting them up →
The second idea I have might help you out here, or at least might help them with debugging this issue. I downloaded the plugin and looked through its code quick, and found a function that hooks onto WordPress’ the_content filter. It’s pretty much always a bad idea to filter the_content, at least generically – and unfortunately, this plugin is generically filtering the_content, which may be causing problems here (maybe not, though).
One way to test this is to have the plugin active on your site, and then add the following line of code to your theme’s functions.php file:
remove_filter( 'the_content', 'Contact_Form_maker_fornt_end_main', 5000 );Then save the file, and see if this helps at all.
Let us know what you find!
Thanks,
GeorgeMarch 17, 2015 at 1:05 am #948782asynadak
ParticipantHello George,
thanks for the advice. I am going to notify the plugin editor about this issue asap. Your recommendation seems to be working partly! While the bug is no longer appearing, the plugins shortcode is printed out instead of being executed.
I finally manged to sort this out. For future reference, in the file views\month\single-event.php I removed the
`data-tribejson='<?php echo tribe_events_template_data( $post ); ?>’
from line 191 and that did the trick! Do you think this might cause problems somewhere else?Thank you once again for your valuable assistance.
BTW, it is funny that the function is “…fornt_end…” instead of “…front_end…”. Did they do this on purpose? Who knows?
March 18, 2015 at 8:16 am #949134George
ParticipantHello,
I would not recommend removing this line of code:
<?php echo tribe_events_template_data( $post ); ?>However, if you do this and it works fine for you and you don’t find any problems, then I guess it’s fine for you to do that while waiting for a solution from the other plugin developer.
Please keep us posted on that developer’s response here, I will leave this ticket “Open” so you can reply but mark it “Resolved” for now.
Thanks!
GeorgeJuly 7, 2015 at 6:31 am #983879Support 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 ‘Month view issue when using shortcode in event’ is closed to new replies.
