wordpress snippets last updated   : August 18, 2014
we now have 638 snippets

Add featured image to RSS feed

wordpress snippet

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 right of the first paragraph of your content, but you can change the CSS in the snippet to modify the layout.

read more

Get feedburner count using get_transient and wp_remote_get

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will get your feedburner subscriber count using get_transient and wp_remote_get. Add the second snippet to your wordpres theme in the location you wish to display the RSS feed subscriber count.

read more

Replace dashboard news feed with another rss feed

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you replace the existing RSS feed widget with another RSS feed. Change YOUR_FEED_NAME with the name you wish to display in the widget title this is located on line 09. You will need to also make adjustments to “url, title, items, show_summery, show_author, show_date” located from line 14-19.

read more

Add custom post types to your sites main RSS feed

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will include the specified custom post types within your primary RSS feed.

read more

Set fetch_feed to update sooner

wordpress snippet

Adding this code snippet to your functions.php will force fetch_feed( $uri ) to update sooner, set time in milliseconds.

read more

Remove wordpress category feeds

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will remove the category feeds from wordpress still keeping your primary RSS feed.

read more
jqsnipp.com | we just launched jquery snippets website