Choose User to email when adding a new post?

You would want to add a custom meta box that lists all users on the site. Not sure off the top of my head how you would create one that lists users, but it shouldn’t be too hard. You would then run a hook on wp_insert_post that verifies which users have been checked, and sends … Read more

Advanced Permalinks plugin breaks RSS

Fixed this now, answering for anyone googling. In a recent version of WordPress the Permalink functionality has had quite an overhaul, making Advanced Permalinks unnecessary, at least in my use case. More info here.

get_posts() method and paging is not working

@user702325 Here’s how i got it working fine on localhost: I installed the plugin and set the option Place Pager Automatically in Template on “on“. Then in author.php i modified the original query to add some custom parameters. I added this: global $query_string; // required $posts = query_posts(‘posts_per_page=2’); right between rewind_posts(); and get_template_part( ‘loop’, ‘author’ … Read more

Managing database tables in WordPress multisite

use the API, the functions of WordPress for save data and check before, it is an Multisite install; thats all. The first example is only for check, is the activated as network wide. // if is active in network of multisite if ( is_multisite() && isset($_GET[‘networkwide’]) && 1 == $_GET[‘networkwide’] ) { add_site_option( ‘my_settings_id’, $data … Read more