↧
Disable Post Revisions in WordPress
The Post Revisions feature in WordPress takes up database space that I’d rather not waste. So I found out how to disable the feature. Add this to wp-config.php: // disable post revisions...
View ArticleTest for Password Protected Post/Page
if (is_singular() && post_password_required($post))
View ArticleExclude Specific Post Formats from Main Loop
function exclude_post_formats( $query ) { if ( $query->is_main_query() && $query->is_home() ) { $tax_query = array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms'...
View Article