Posted: December 9, 2015 at 12:23 pm
|
Hello, The shortcode that used to show all the events in the table template stopped working after upgrading to WP 4.4. |
|
PS: I did do the following checks: |
Hi there, Can you double check the Event Espresso – Events Table View Template add-on in still installed and activated on your site please? I’m using 4.4 on multiple sites with the events table so just starting from the beginning. |
|
Hi there, You might also verify that your other plugins are compatible with the shortcode changes in WordPress 4.4. I checked and the same shortcode is working as expected on our testing site that runs WordPress 4.4. You can check here: http://ee4m.eventespresso.com/espresso-events-table-template/ |
|
|
Hi Tony, yes all the EE4 add-ons are still installed and active: |
|
Sorry, with the correct image |
|
I just also tried disabling all plugins except of EE4 and EE4 table plugin, still the same issue. Then I tried again changing the theme to twenty thirteen, still the same.. |
|
|
Try using just What happens? |
|
|
yes that works, but of course the format is not ideal, plus I have this same table in almost 8 other pages. I changed it on this page temporarily: http://www.genevaphotoclub.com/dates-prices/ it must be all the other stuff in the short code. Could you let me know how (or when) I can get back to the original table? Here is my original code: [ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=”espresso-event-table-template.oa.php” order_by=”start_date” table_style=”standalone” table_search=”false” table_filter=”false” table_sort=”false” category_filter=”false” table_paging=”false” reg_button_text=”Sign Up” sold_out_button_text=”Sold-out”] |
Hi Oguzhan, There are a number of reports of shortcodes breaking with WordPress 4.4. While I’m not 100% sure why this particular shortcode isn’t working for you since the last update, it looks like if you shorten the file names of the templates you’re loading it may help. So for example, your first shortcode could be input as this instead:
Please note in the above example, I removed the quotes around the parameters that set a value and not a string. Please also note that you’ll need to change the name of the file to “template.oa.php” as well. |
|
|
hi there, |
I see that the first one is working. With the second and third shortcodes, can you try switching to using single quotes instead of double quotes when you set the parameter values? |
|
|
if it will help, the issue seems to be the template_file link. I tried renaming the template file also to templateoa.php, it still didn’t work. However if take it out and just put order_by=”start_date” for example, works without a problem. |
I’m not running into the same problems with the template_file parameter on my test sites. Are you loading those from a location from your WordPress theme or from the /uploads/espresso/templates folder? |
|
|
ok, the single quotes for the template_file did the trick! Shall I go ahead and change all the tables in the website now, or is it something you guys can fix easily with the table_template update? |
I don’t think this is something we can fix with an update to the table_template plugin. There might be some fixes coming to the WordPress shortcode API in a 4.4.1 release of WordPress, but you probably want to get things working before then. |
|
|
ok. you might want to add this to Lorenzo’s pinned post, as it seems like not everything works well with WP 4.4 |
Everything works as far as we can tell, I think the reason you were having trouble is the way the shortcode parameters you had set were prone to have some errors, which the earlier version of WordPress would tolerate, but not 4.4. |
|
|
I did exactly as explained here |
Whomever wrote those docs didn’t know what they were doing. |
|
|
🙂 hope it wasn’t you! |
Nope, it wasn’t me. You’re welcome. |
|
The support post ‘URGENT: Event Table Shortcode stopped working with WP 4.4’ 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.