Comment moderation with disqus comments

Disqus pre-moderation rules are set on http://disqus.com/admin/settings/ and can’t be administered via WordPress. Currently there are only options to pre-moderate all comments, or comments from unverified users globally. If you wanted this kind of granularity, you can always register a new Disqus shortname (which is a container for all of your comments/settings) and install the … Read more

How to loop through custom posts in admin edit screen

Yes there is some sort of hook for this: manage_posts_custom_column Pseudo code: function my_cpt_custom_column( $column ) { global $post; if ( ‘my_cpt’ == get_post_type( $post ) ) { switch ( $column ) { case ‘title’: // do stuff with $post->post_title echo $post->post_title; break; case ‘some-other-heading’: // do stuff break; } } } add_action( ‘manage_posts_custom_column’, ‘my_cpt_custom_column’ … Read more

Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?

The following 2 filters allow you to hook into when WordPress checks the slug and are found in the function wp_unique_post_slug() in the wp-includes/post.php file. There are 2 filters, one for hierarchical posts and one for non-hierarchical. The hierarchical filter provides the ID for the post parent so if the $post_parent is 0, you know … Read more