For a long time I had resisted converting my DVD and Blu-Ray disks into any other format because I didn’t want to lose any quality. I had lived by this rule for a long time, and thankfully companies like QNAP and Thecus came to my storage rescue. However, the day has come where the cost of storing all the extra garbage that comes along with these movies has opened my eyes to benefits conversions. With that, I have began converting my movie collection to a format that allows me to lose all the excess fat, but keep my movie loss-less. Read More…
Removing a Category From Your Feed in WordPress
Date: July 26th, 2010
Author: Joe DiFiglia
Category: Wordpress
Tags: functions.php, Wordpress
Article URL: http://computingondemand.com/?p=4130
If you run your site on WordPress and using it as a content management system, you may have realized that there are categories of posts that you don't want published on your feed. There is no easy way to do this through WordPress by default, but that doesn't mean that this isn't possible to accomplish. You can eliminate certain categories easily by editing your theme's functions.php file.
1. Edit your theme’s functions.php file
2. Paste the following code between the <?php and the ?>
// --------------------------------------------------------------------------
// Start Category Remove from Feed
// --------------------------------------------------------------------------
function myFilter($query) {
if ($query->is_feed) {
$query->set('cat','-289'); //Don't forget to change the category ID =^o^=
}
return $query;
}
// 289 = Press Releases Category
add_filter('pre_get_posts','myFilter');
// --------------------------------------------------------------------------
// End Category Remove from Feed
// --------------------------------------------------------------------------Note: These functions are not of my own creation, simply things I have found along the way. If you are the author of this function, please let me know so I can properly credit you with your work!


