Make id column as AUTO INCREMENT on plugin activation

Add the autoincrement keyword after `id` int NOT NULL: public static function activate() { global $wpdb; $sql = “CREATE TABLE `{$wpdb->base_prefix}employee` ( `id` int NOT NULL autoincrement, `name` varchar(255) NOT NULL, `dob` date NOT NULL, `gender` int NOT NULL, `email` varchar(255) NOT NULL, `joining_date` date NOT NULL, `address` varchar(255) NOT NULL, `salary_package` int NOT NULL, … Read more

Pass variable to nested shortcode

I assume you just pass the content of ct_training_group to another call of do_shortcode()? You can’t pass extra parameters to it, so if you don’t want to use global state variables, you could always replace the current shortcode handler for ct_training with one that doesn’t add the extra <ul>. It seems there is no cache … Read more

Using the “Latest posts” feature on a different site

You could insert the plugin’s shortcode into another page, by following the directions here. http://wordpress.org/extend/plugins/nurelm-get-posts/ Alternatively if you don’t necessarily need the plugin and simply want to create a page that displays posts, follow the example given here on the codex. http://codex.wordpress.org/Pages#A_Page_of_Posts Scribu, +1 .. as that’s essentially what you were suggesting to.