Media previews on posts

Okay so I figured out what was happening – either the new theme or an unintentional wordpress update, lead to media links being handled differently. My new theme now only needs the URL – no shortcodes or iframes – and it seems to automatically process it to display how it used to display them. Only … Read more

Where to store media uploaded by the plugin?

You can do something like this to create your own plugin upload folder in /wp-content/uploads the following code will basically create a custom folder inside uploads called myplugin_uploads and put an empty index.html inside it. Dynamically creating your custom upload folder add_action( ‘init’, ‘create_files’ ); function create_files() { $upload_dir = wp_upload_dir(); $files = array( array( … Read more

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