Add your custom post types to your sites main RSS feed by default

Posted by & filed under WordPress.

// ADD CUSTOM POST TYPES TO THE DEFAULT RSS FEED function custom_feed_request( $vars ) { if (isset($vars[‘feed’]) && !isset($vars[‘post_type’])) $vars[‘post_type’] = array( ‘post’, ‘site’, ‘plugin’, ‘theme’, ‘person’ ); return $vars; } add_filter( ‘request’, ‘custom_feed_request’ );

Include custom post types in the search results

Posted by & filed under WordPress.

// MAKE CUSTOM POST TYPES SEARCHABLE function searchAll( $query ) { if ( $query->is_search ) { $query->set( ‘post_type’, array( ‘site’, ‘plugin’, ‘theme’, ‘person’ )); } return $query; } add_filter( ‘the_search_query’, ‘searchAll’ );

Disable wordpress automatic updates

Posted by & filed under WordPress.

One liner you can add to your wp-config to disable automatic updates. Sometimes you are just not ready to update to the next version of wordpress or want to update on your own schedule. define( ‘WP_AUTO_UPDATE_CORE’, false );

Add featured image to RSS feed

Posted by & filed under WordPress.

It’s often useful to spruce up your RSS feed with images and the simplest way to do this is to include your post’s featured image in the feed content. Some themes have an option to enable this, but if yours does not then you can use this snippet. It will display the image to the

Continue reading →