Title: time table shortcode problem
Last modified: May 20, 2017

---

# time table shortcode problem

 *  Resolved [suganya1993](https://wordpress.org/support/users/suganya1993/)
 * (@suganya1993)
 * [9 years ago](https://wordpress.org/support/topic/time-table-shortcode-problem/)
 * Hi,
 * Thanks for the giving me a wonderful plugin.
    1. If I use shortcode in the text
   widget, first time table visible and when i refresh the page the table hide,(
   when i refresh the page the script add the style “display: none”. <table class
   =”mptt-shortcode-table mptt-theme-mode” id=”#all” style=”display:none” data-hide_empty_row
   =”1″>) 2.. If I use shortcode in the text widget, it inducing the following error.
   For your info: I used latest WordPress4.7.5 and plugin version2.1.8.
 * Kindly letus know if any update.
 * WordPress database error: [You have an error in your SQL syntax; check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘"
   2858,2870,2868,2861") ORDER BY `event_start`‘ at line 1]
    SELECT * FROM wp_mp_timetable_data
   WHERE event_id IN ("2858,2870,2868,2861") ORDER BY `event_start`
 * Warning: Division by zero in /var/www/html/gympress/pro/wp-content/plugins/mp-
   timetable/classes/class-shortcode.php on line 208
 * Warning: Division by zero in /var/www/html/gympress/pro/wp-content/plugins/mp-
   timetable/classes/class-shortcode.php on line 210
 * Notice: Undefined index: input in /var/www/html/gympress/pro/wp-includes/kses.
   php on line 866

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [motopress](https://wordpress.org/support/users/motopress/)
 * (@motopress)
 * [9 years ago](https://wordpress.org/support/topic/time-table-shortcode-problem/#post-9170972)
 * Hi [@suganya1993](https://wordpress.org/support/users/suganya1993/),
    Please 
   specify how to replicate the issue. Do you copy timetable shortcode to text widget
   and that’s all? There is also upcoming events widget available that can be used
   in widget areas of your theme.
 *  Thread Starter [suganya1993](https://wordpress.org/support/users/suganya1993/)
 * (@suganya1993)
 * [9 years ago](https://wordpress.org/support/topic/time-table-shortcode-problem/#post-9172234)
 * Hi,
 * Thanks for the response.
 * 1. If I paste the timetable shortcode into the text widget. It will show correctly
   at the first time, but when i refresh the page doesn’t show anything.
 * I used Page Builder by SiteOrigin plugin.
 * I want to show the full table, but upcoming events widget only show the content
   not a table, that’s why i used the shortcode.
 *  Plugin Contributor [motopress](https://wordpress.org/support/users/motopress/)
 * (@motopress)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/time-table-shortcode-problem/#post-9205958)
 * Hi [@suganya1993](https://wordpress.org/support/users/suganya1993/),
    I’ve added
   TimeTable shortcode to Text Widget (via Appearance>Widgets) tested it locally
   and could see at the sidebar after numerous reloads. You can try to add shortcode
   in default way and without using third party plugins. Will it work on your side?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘time table shortcode problem’ is closed to new replies.

 * ![](https://ps.w.org/mp-timetable/assets/icon-256x256.png?rev=2665792)
 * [Timetable and Event Schedule by MotoPress](https://wordpress.org/plugins/mp-timetable/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mp-timetable/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mp-timetable/)
 * [Active Topics](https://wordpress.org/support/plugin/mp-timetable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mp-timetable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mp-timetable/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [motopress](https://wordpress.org/support/users/motopress/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/time-table-shortcode-problem/#post-9205958)
 * Status: resolved