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

Media Gallery doesn’t show (using WP-Read Only)

Found the issue. I’m using Postgres_SQL cus I’m on Heroku, but that doesn’t play nicely with WordPress. Here’s the problem query: SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (8,9)… It caused the error described here: https://stackoverflow.com/a/14132471/378622

uploading photos

This might came from your access right: First, check that you are a writer or an admin (See User in Admin Panel) > general > Role Second, if this is not the problem check the rights of yoursource files into your server ( you can easily check this on your FTP files or if you … Read more

Set featured link not showing

your theme needs to support Post Thumbnails to have the featured image meta box… Add this to your functions.php file: add_theme_support( ‘post-thumbnails’ ); See http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails

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