WordPress database error: [Disk full (/tmp/#sql-temptable-1-261c8a-534.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")]SHOW FULL COLUMNS FROM `markjacobsen_options`
Want to keep posts from a given WordPress category or categories out of your public feed? \u00a0If so, just edit the template’s functions.php file and append this code…<\/p>\n
function myFeedExcluder($query) {\r\n if ($query->is_feed) {\r\n $query->set('cat','-12');\r\n }\r\nreturn $query;\r\n}\r\n\r\nadd_filter('pre_get_posts','myFeedExcluder');<\/pre>\nThis code will keep the category ID=\u201d12\u2033 out of the feed. If you want to exclude more than one category, put them in separated by commas \u2018-12,-25,-33\u2032.<\/p>\n
Thanks to this page<\/a> for this tip!<\/p>\nPlease remember to subscribe to the newsletter<\/a> to stay up to date!<\/i>
\n
\nYou or someone you know looking to buy or sell?<\/i>\n<\/a>
\nDisclaimer: Thoughts and opinions are my own, and do not reflect the views of any employer, family member, friend, or anyone else. Some links may be affiliate links, but I don't link to anything I don't use myself. You would think this should be self evident these days, but apparently not...<\/small><\/i>","protected":false},"excerpt":{"rendered":"Want to keep posts from a given WordPress category or categories out of your public feed? \u00a0If so, just edit the template’s functions.php file and append this code… function myFeedExcluder($query) { if ($query->is_feed) { $query->set(‘cat’,’-12′); } return $query; } add_filter(‘pre_get_posts’,’myFeedExcluder’); This code will keep the category ID=\u201d12\u2033 out of the feed. If you want to … Continue reading Exclude Categories from WordPress Feed<\/span>