<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>WordPress on MarkJacobsen.net</title><link>https://test.markjacobsen.net/categories/wordpress/</link><description>Recent content in WordPress on MarkJacobsen.net</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Wed, 30 Apr 2025 01:10:00 +0000</lastBuildDate><atom:link href="https://test.markjacobsen.net/categories/wordpress/index.xml" rel="self" type="application/rss+xml"/><item><title>Disabling a WordPress Plugin via Command Line</title><link>https://test.markjacobsen.net/2025/04/disabling-a-wordpress-plugin-via-command-line/</link><pubDate>Wed, 30 Apr 2025 01:10:00 +0000</pubDate><guid>https://test.markjacobsen.net/2025/04/disabling-a-wordpress-plugin-via-command-line/</guid><description>&lt;p&gt;Ever look on in horror as your WordPress site crashes with no obvious reason? I have, and this time I’m writing down what I did 🙂&lt;/p&gt;
&lt;p&gt;First I checked the logs using Docker (if you’re not running via Docker… you should be)&lt;/p&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;docker logs &amp;#91;container]&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Hopefully that gives you some clues. In my case there were errors all over the place pointing at a particular plugin, so 1st I had to access the bash shell for that container like so…&lt;/p&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;sudo docker exec -it &amp;#91;container] /bin/bash&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;From there, simply cd to the plugin directory and rename the directory…&lt;/p&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;cd wp-content/plugins/
mv &amp;#91;plugin] &amp;#91;plugin]-off&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Which &lt;strong&gt;should&lt;/strong&gt; allow things to start running again. At a minimum the plugin should be disabled, and if not working you can continue the hunt.&lt;/p&gt;</description></item><item><title>Exclude Categories from WordPress Feed</title><link>https://test.markjacobsen.net/2012/11/exclude-categories-from-wordpress-feed/</link><pubDate>Sat, 24 Nov 2012 20:40:05 +0000</pubDate><guid>https://test.markjacobsen.net/2012/11/exclude-categories-from-wordpress-feed/</guid><description>&lt;p&gt;Want to keep posts from a given WordPress category or categories out of your public feed?  If so, just edit the template’s functions.php file and append this code…&lt;/p&gt;
&lt;pre&gt;function myFeedExcluder($query) {
 if ($query-&amp;gt;is_feed) {
 $query-&amp;gt;set('cat','-12');
 }
return $query;
}

add_filter('pre_get_posts','myFeedExcluder');&lt;/pre&gt;
&lt;p&gt;This code will keep the category ID=”12″ out of the feed. If you want to exclude more than one category, put them in separated by commas ‘-12,-25,-33′.&lt;/p&gt;
&lt;p&gt;Thanks to &lt;a href="http://web-kreation.com/all/4-ways-to-exclude-wordpress-category-from-rss-feeds/" target="_blank"&gt;this page&lt;/a&gt; for this tip!&lt;/p&gt;</description></item></channel></rss>