If you need to exclude a specific category from your RSS feed, put the following code in your theme’s functions.php. Go to Appearance | Editor | Theme Functions (functions.php) // Excludes Category from RSS Feed function exclude_catid_feed( $query ) { if ( $query->is_feed ) { $query->set( ‘cat’, ‘-1’ ); } return $query; } add_filter( ‘pre_get_posts’, ‘exclude_catid_feed’);…
Read On…
Archive for the ‘WordPress’ Category
Auto Update Copyright Year In Website Footer
Every year I have to go through my various WordPress blogs and update the copyright year in the footer. For example, Raving Roo started in 2013, so I display the copyright as “2013 – current year”. Well, why do something manually when a piece of code can do it for you? Simply replace the text…
Read On…
WordPress Per-Page CSS, And Background Image Pattern Overlay
Did you know that you can apply custom CSS code to individual WordPress pages? It’s a nifty little trick to help you personalize your WordPress theme. On my photography blog, I wanted to have a custom header background image with a pattern overlay for a specific page (“The Street Collection“). The theme I’m using does…
Read On…
WordPress UserOnline Plugin: Dashboard Issue After 2.8.1 Update
The WordPress UserOnline Plugin is a useful way to see how many guests and search engine bots are currently viewing/scanning your content. But do you see this in the “Right Now” section of your WordPress Dashboard, Users: [YourUserName] %GUESTS_SEPERATOR%%BOTS_SEPERATOR% when you should instead see something closer to this? Users: [YourUserName], 18 Guests, 7 Bots This…
Read On…