DataTables Views can't be displayed using echo do_shortcode functions

If you are trying to call the [gravityview] shortcode inside a theme template file by using the echo do_shortcode PHP functions, like in the example below, it won't work:

echo do_shortcode('[gravityview id="12"]');

The reason is that the DataTables library heavily relies on Ajax requests (and other javascript methods) to load entries on the table.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.