Restrict the Number of Posts an Author can Publish (over time)?

Closest thing out there seems to be: http://www.spaw.it/359/wordpress-plugin-limit-post-creation/, but it only sets a single, hard limit. I think your best bet is to utilize this WordPress thread with code to limit number of posts for registered users: http://wordpress.org/support/topic/limit-the-number-of-posts-a-user-can-make?replies=18 You would need to change the $count_posts var to only count posts made within your time-frame…

Utilising posts with various post types & categories?

Post Types I would certainly register ‘News’, ‘Events’ and ‘Opportunities’ as custom post types, while maybe keeping ‘Articles’ as the default ‘Post’ post type. (See the Codex on custom post types). This would, among other things, allow you to register/de-register metaboxes for specific post types where appropriate. Also, as requested, ‘News’, ‘Events’, etc will have … Read more

Writing a view count with w3 total cache

This won’t work if page caching is enabled, I would recommend creating an ajax request which calls this function instead. e.g. add_action( “wp_ajax_nopriv_view_count”, ‘view_count’ ); add_action( “wp_ajax_view_count”, ‘view_count’ ); function view_count(){ update_post_meta($_GET[‘id’], ‘view_count’, $count++); } (then create an ajax call in JS which passes through the page id to this counting function) Ajax shouldn’t be … Read more

Restrict access to post if it is currently being edited

The warning notice gets dispatched by the function wp_check_post_lock. The following redirects the user back to the post listing screen if someone else is editing it. add_action( ‘load-post.php’, ‘redirect_locked_post_wpse_95718’ ); function redirect_locked_post_wpse_95718() { if( isset($_GET[‘post’] ) && wp_check_post_lock( $_GET[‘post’] ) ) { global $typenow; $goto = ( ‘post’ == $typenow ) ? ” : “?post_type=$typenow”; … Read more

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