How to insert more than one row of data into a table at one time

You could use a foreach loop – function mp_install_name_data() { global $wpdb; $table_name = $wpdb->prefix . “names”; $rows = array( array( ‘id’ => ‘1’, ‘name’ => ‘matt’, ‘age’ => ’20’, ‘point_one’ => ‘0.45’, ‘point_two’ => ‘0.22’ ), array( ‘id’ => ‘2’, ‘name’ =>’james’, ‘age’ => ‘6’, ‘point_one’ => ‘0.27’, ‘point_two’ => ‘0.17’ ) ); foreach( … Read more

Why majority of fileds in wp_posts table prefixed with post_?

You pretty much answered it – legacy code. WordPress is the result of years of code evolution, refactoring and (most importantly) multiple developers/coders/authors – whilst they’re getting pretty good at enforcing coding standards/consistency, there will always be a trail of the past.

Display Tables in a slider

Here is one way to do it. You should be able to create a simple jQuery and CSS slider to better display the TablePress tables. Here is a good example of a simple jQuery slider you could use: https://codepen.io/doodlemarks/pen/aFcly You would need to add the CSS and jQuery to your site then insert the required … Read more