Plugin to set all Posts in a certain Category to a certain Post Format

Try putting this plugin in your wp-content/plugins folder and then activate it: <?php /* Plugin Name: WPSE53245 – Set Tweet category posts as Aside Plugin URI: http://http://wordpress.stackexchange.com/questions/53235 Description: Set Tweet category posts as Aside Version: 0.1 Author: Ashfame Author URI: http://wordpress.stackexchange.com/users/1521/ashfame */ add_action( ‘save_post’, ‘wpse53235_set_post_format_aside’ ); function wpse53235_set_post_format_aside( $postID ) { if ( has_post_format( ‘aside’, … Read more

Repeatable configuration package

Not exactly what you are asking for, but very close. There is a concept of ‘dropin’ plugins that exists primarily to override or add to core functions The dropins will always load. So one ftp’s up wordpress including whatever plugin files you want that will create your default environment. These should be in the top … Read more

Automatically set page order on create page

You could use ajax and the admin_footer-post-new.php hook. The sql would vary depending on whether you want the highest or most recently published order number. The following returns the highest published order number + 1: function wpse155926_set_menu_order() { $ret = array(); if ( check_ajax_referer( ‘wpse155926_set_menu_order_post’, ‘nonce’, false /*die*/ ) ) { global $wpdb; //last published … Read more

Automating Page Creation

Where is the content coming from? You can easily write PHP code that will create pages, but the content has to come from somewhere. If the content already exists, say in a database that you own, then you can code a process to take the data from a table/record and convert it into a post/page.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)