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`

{"id":26,"date":"2012-11-24T20:40:05","date_gmt":"2012-11-24T20:40:05","guid":{"rendered":"http:\/\/visit.markjacobsen.net\/?p=26"},"modified":"2012-11-24T20:40:05","modified_gmt":"2012-11-24T20:40:05","slug":"exclude-categories-from-wordpress-feed","status":"publish","type":"post","link":"https:\/\/markjacobsen.net\/2012\/11\/exclude-categories-from-wordpress-feed\/","title":{"rendered":"Exclude Categories from WordPress Feed"},"content":{"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…<\/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>\n

This 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> →<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false,"jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[6],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2UXeD-q","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/posts\/26"}],"collection":[{"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":5,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":31,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/posts\/26\/revisions\/31"}],"wp:attachment":[{"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}