-
How to locate your php.ini file
When you need to know where the php.ini configuration file is on your server, here is a handy way to find it: php -i | grep php.ini Give it a try. Link to share this: https://www.gabrielserafini.com/blog/2010/07/15/how-to-locate-your-php-ini-file/
-
How to fix 301 error when importing blog posts including images from a WordPress.com blog into a new WordPress.org blog
The current import script (as of WordPress 2.8.6) is broken when it comes to successfully importing images from WordPress.com. The error you see is something like Remote file error: Remote file returned error response 301 Moved Permanently Fixing this involves adding a couple of lines to a core WordPress file. Hopefully a future version of…
-
How to: Get rid of widows in your WordPress posts with Widon’t plugin
I was just working on making some updates to the backend WordPress code for the Principia Pilot website (http://principiapilot.org/) and noticed widows in some of the stories. Widows are the typographic term for a single word on a line at the end of a paragraph. I thought about the solution to this problem (basically add…
-
How to: Automatically add a default set of Custom Fields to each post in WordPress
One of the neat things about WordPress is how easy it is to add custom metadata to a given page or post that you can then use in a template to display structured information. I’ve been using this technique for a while now to extend the basic WordPress elements of title, body, excerpt, etc and…