where is images/image.jpg?

The plugin is search for an ‘images’ folder inside the current working directory. For example if you are in /blogs/, a file looking for images/image.jpg is actually looking for /blogs/images/image.jpg. This can obviously get very messy when re-writing URLs with stuff like /2010/03/blog-title so actually put an image in the specific location is impossible, you … Read more

Accidentally Changed WordPress Url

If you’re on a local install, it’s fairly trivial to fix this. Just use phpMyAdmin to reset home_url and/or site_url in the wp_options table in the database. Switching between two localhost installs is also fairly straight-forward: just don’t actually use “localhost” for anything. Instead, set up a unique domain in your system’s hosts file for … Read more

Categorising themes by folders in backend

Updated plugin version available at GitHub. I first saw your Question at [wp-hackers] list, and, after implementing the solution, was about to publish a Q&A for that. Well, it’s already here, and has a bounty put on it 🙂 As Daniel Bachhuber points out in the thread: WordPress.com puts themes inside of subdirectories /wp-content/themes/public /wp-content/themes/premium … Read more

Media Upload Directory to MMYY instead of YYYY/MM

/** Force wp_upload_dir() to use time-based paths. */ add_filter( ‘pre_option_uploads_use_yearmonth_folders’, ‘__return_true’ ); /** * Use the date format MMYY instead of YYYY/MM in the uploads path. * * @param array $dir * @return array */ function wpse_104005_upload_dir( $dir ) { if ( preg_match( ‘!/([0-9]{4})/([0-9]{2})!’, $dir[‘subdir’] ) ) { // Check we do indeed have a … Read more