My Studio Space
  • Home
  • About
  • Services
    • Website Design
    • Best Blog Design
    • Online Marketing
    • Graphic Design
    • E-Commerce
    • USA Web Hosting
  • Website Design Portfolio
  • Blog
  • Contact

Posts Tagged ‘Word Press’

How to Exclude a Category from your Blog Feed

December 11th, 2009 by My Studio Space Website Design Firm Arizona 85201 - Leave a comment
Posted in Website Design Firm News
Tags: Tip & Tricks, Word Press

The are many reasons why you may want to exclude a specific blog category from your RSS feed. The most often excluded blog category for us is testimonials, which is often pulled to use as rotation text somewhere on a website.

Setting your client testimonials up as a blog category makes it easy to add and mange them but excluding them from your blog feed takes a little effort, but not much.

All you need to do is add a few lines of code to the functions.php file in your theme:

function exclude($query) {
if ($query->is_feed) {
$query->set('exclude','-19');
}
return $query;
}
add_filter('pre_get_posts','exclude');

In the code above simply replace the category ID number with the category ID on your blog that you want to exclude.

If you don’t have a functions.php file in your theme, you can create a new file in Notepad, just type <?php  the above code and ?> after the code,  then save and upload to your theme’s folder.

And that’s it.

Leave a comment
Posted in Website Design Firm News
Tags: Tip & Tricks, Word Press
  • Recent Posts

    • Day Spa & Salon Website Design
    • Drop in Google Traffic Forces Site Owners to Explore Social Media Marketing
    • Google “Mayday” Update Leaves Many Searching for Lost Long Tail Traffic
    • Patriotic Summer Fun – Children’s Art Contest
    • 1,217 Reasons Why Your Website Needs an Upgrade
    • Facebook & Twitter an Overwhelming Marketing Necessity?
    • Custom Massage Industry Website for Sale
    • Wes Choi’s TKD in Mesa Arizona, Gets a Make Over
    • Non-Profit Website Design
    • Restaurant Web Design
  • Topics

    • Web Design Client Testimonials
    • Website Design Firm News
  • Online Support

    LiveZilla Live Help
My Studio Space on LinkedInLinkedIn

My Studio Space on FacebookFacebook

My Studio Space on TwitterTwitter

My Studio Space RSSRSS

LINKS

  • Home
  • About
  • Services
  • Portfolio
  • Blog
  • Contact

CLIENT FEEDBACK

When people ask me if I am happy with my website, I tell them that I love the layout and the ease of navigating the website. It looks great and it’s easy to use, I love it!

Natasha Morford
Relaxing Touch Massage

Relaxing Touch Massage

FREE WEB WORKSHEET

You know you need to get your business online, but you're not sure where to start? Join our mailng list and receive our Free Web Design Worksheet. Fill in the blanks to start the ball rolling in the right direction. Use it just to get organized or send it back to us if you are ready for our support!

© 2009-10 My Studio Space Web Design | Terms of Use | Privacy Policy