How to change Shortcode – For Dummies
-
Hello Tobi,
thank you for your great software. I have rated it five stars! First of all, sorry for my noob question. After I tried to figure this out for almost two hours with no luck. Out of desperation I′m now contacting you. I′m having trouble changing the shortcode of my table.
All I want to do is to have a fixed column (left). Therefore I have installed the fixed Column extension. Then I found out I have to change the shortcode also. I then installed the shortcode extension and activated it. In the instructions it asks me to “change the code in the PHP file to the desired Shortcode”.This is the code in the shortcode-extension′s PhP file:
<?php
/*
Plugin Name: TablePress Extension: Change Table Shortcode
Plugin URI: https://tablepress.org/extensions/table-shortcode/
Description: Custom Extension for TablePress to change the [table /] Shortcode
Version: 1.0
Author: Tobias B?thge
Author URI: https://tobias.baethge.com/
*/add_filter( ‘tablepress_table_shortcode’, ‘tablepress_change_table_shortcode’ );
function tablepress_change_table_shortcode( $shortcode ) {
return ‘list’;
}Where do I have to change it so that my [table id=2 /] is changed to [table id=2 datatables_fixedcolumns=”left” /]? I simply don′t get it.
Thank you very, very much for helping me out on this one! I really appreciate it.
Best regards
- The topic ‘How to change Shortcode – For Dummies’ is closed to new replies.