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

How do I make a copy of WordPress to other folder

If you want to move wordpress you should this: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory I guess you want to create a development environment, and because you never edit core files of WordPress you don’t have to copy WordPress itself because the only thing you are changing is the theme folder. And you don’t want to install WordPress a second … Read more

How can I set up a completely separate (not multisite) WordPress installation as a subdirectory of an existing WordPress blog?

I decided to move the child installation to the main site’s web root, and rename its subdirectory to intranet. Once I had done this, all I had left to do was place this line of code after the main site’s rules: RewriteRule ^intranet/ – [L] The – rewrites the URI to itself – thus overriding … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)