Sometimes it is convenient to import terms or posts into a WordPress database. When you do, you may need to create a ‘slug’ column. To do this, I’ve modified a user defined function I found on StackOverflow or some similar site (possibly...
I posted sent this to a client asking about what the right banner image size is for a #WordPress site. Where am I off and could have improved it? [..] So when creating custom headers for sites that are responsive and...
Sometimes you want to provide a simple way for users to enter multiple values. Perhaps the simplest way for the user is to understand is allow them to enter new values on each line. Historically that’s how Internet Explorer allowed you to configure...
I use NetDrive and NotePad++ to do my WordPress Development, but I’ve customized NPP slightly along the way. I’ve added the following functions: Alt-F3 – Search the WordPress codex for the word at the cursor in the editor (usually for filters...
I was about to rewrite some of these queries again, and decided to google instead. I found this page with them already written: http://kb.iweb.com/entries/29801848-Verifying-CMS-versions-on-multiple-websites So this too gets stored away in my cave. Enjoy: WordPress version: Linux/cPanel: find /home/*/public_html/ -type f -iwholename...
Sometimes a simple Google search won’t do. Today I needed to find some malformed URLs in a site. I couldn’t remember how to search for specific text in a URL. I had a hard time finding the Google documentation of search commands this...
Here are a couple commands you might find useful. This command finds files that are larger than half a gig: find / -type f -size +500M -exec ls -lh {} \; This command finds files that are larger than 1 gig: find...
WordPress is generally very good about working under any server situation you put it in. It even has fall back code if the preferred server settings are not available. The plugin and update installation code is one example of this. If...
Let’s keep this one simple. There are two main ways to restart Spamd. The first way restarts spamd (aka spam assasin) itself: /scripts/restartsrv_spamd The next way is to restart the default mail server exim, which uses spam assassin. That’s done with:...