Short code for Venues

There aren’t currently any shortcodes for venue information (address, postcode, other meta etc). However, you can copy the single-event.php template (find it in the templates directory of the plug-in) into your theme and edit it there to include venue information via provided template functions: Available functions When used inside the loop, you don’t need to … Read more

Stop parsing shortcodes

The correct way is calling remove_filter with the same priority as the hook was added: remove_filter( ‘the_content’, ‘do_shortcode’, 11 ); Some plugins change this filter’s priority, so you could clear the global list of registered shortcodes temporary: add_filter( ‘the_content’, ‘toggle_shortcodes’, -1 ); add_filter( ‘the_content’, ‘toggle_shortcodes’, PHP_INT_MAX ); function toggle_shortcodes( $content ) { static $original_shortcodes = … Read more

Calling a shortcode in the backend

As you noticed, the plugin use an instance of the class TablePress_Frontend_Controller to render the shortcode. This instance is created by only on frontend requests, this is the reason why shortcode doesn’t work on backend. The function tablepress_print_table function use the TablePress_Frontend_Controller::shortcode_table method to render the table, and this is the reason why also that … Read more

sql query in shortcode not working

I have worked it out and here are the steps to what I did to get it working created a custom table in the wordpress database (called it wp-products) this table had the following fields: id, make, model, price Created a shortcode to retrieve the price. Shortcode looks like this [product_price id=2] where id=2 is … Read more