Wordpress

How to Change Media Upload Folder in WordPress 3.5

Since version 3.5, WordPress no longer allow user to change media upload folder from admin dashboard. To change user have to edit  “wp-config.php” file located in wordpress intallation folder

If you want to change the upload folder like http://www.example.com/wp-content/images/, you have to add the following code in “wp-config.php”

define( 'UPLOADS', 'wp-content/'.'images' );

If you want to change the upload folder like http://www.example.com/images/, you have to add the following code in “wp-config.php”

define( 'UPLOADS', ''.'images' );

You can still choose whether or not you want uploaded files to be organized in month/year folders in Settings » Media.


Remove Date Below Post in Twenty Twelve Theme

This is the method on how to remove date from the post if you are using Twenty Twelve Theme in your wordpress blog. The example date under the post is

This entry was posted in Uncategorized on January 7, 2013.

To remove it, in wordpress admin area, select “Appearance” and “Editor”. Select “Theme Functions (functions.php)” file and search for the code as below,

	// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
	if ( $tag_list ) {
		$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
	} elseif ( $categories_list ) {
		$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
	} else {
		$utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
	}

What you need to change to to remove “on %3$s” in 3 locations in each line start with “$utility_text”. Done 🙂