Create post for every user?

Create this as a plugin and activate it. It deactivates itself after it creates a primary page for Authors and sub-pages for each Author+ or better Role. At the end, it deactivates itself. Improve it as you wish. It uses // Hook activation to create new Author Pages register_activation_hook(__FILE__, function(){ // Create a Parent Page … Read more

Is there a way to have the view link on manage posts page to open in a new window or tab?

Late answer WP core offers a function for that case, that makes it much easier and future proof: Simply map it on each item. Wrapped up in a plugin Best used as mu-plugin. <?php /* Plugin Name: (#32093) »kaiser« Open “action”-links in post type list screens in new windows/tabs */ function wpse32093_link_target_blank( $actions, $post ) … Read more

Getting content from a single *page* of a post

This should do the trick: /** * For posts paginated using <!–nextpage–>, return a particular “page” of content. * This function uses code from WP’s setup_postdata() function. * @param string $content the content to search for paginated page content. * @param int $page_number the index of the page to return the content for. */ function … Read more

Make view count for pop up post

Apparently the plugin does the logging inside the wp_head hook: add_action(‘wp_head’, ‘process_postviews’); so make sure you call wp_head() in your pop-up box, or if you can’t do that (pop-up is not a html document), then just call the function directly, like: if(function_exists(‘process_postviews’)) process_postviews(); // the_content(); ?

Remove posts after a given amount of time

You can use wp_delete_post() and get_the_date(). global $wpdb; if ( !is_user_logged_in()) echo ‘You must be logged in.’; // check if title $my_post_name already exists in wpdb else if ( is_user_logged_in()&& $wpdb->get_row(“SELECT post_title FROM wp_posts WHERE post_title=”” . $my_post_name . “””, ‘ARRAY_A’)) { // then check age of the post? assign age to a variable? $time … Read more

Support for simultaneous editing

Short answer – no. Long answer – WordPress retrieves and stores info in the database. To pull and push that data live to multiple locations simultaneously would tax the vast majority of users’ servers beyond their capabilities (especially shared hosting). It does let you know when someone else is editing a page or post, but … Read more