how upload images and videos to specific folder like wp-content\uploads\folder-name

i do that with some line of code add this to function.php to change the uploaded file dir // change dir for anomaly images function example_Dir( $param ){ $param[‘path’] = ‘/home/yoursite/domains/yoursite.com/public_html/wp-content/uploads/example’; $param[‘url’] = ‘ https://yoursite.com/wp-content/uploads/example’; return $param; } here is the form : <form action=”” enctype=”multipart/form-data” method=”post” > <input type=”file” name=”file”> <input type=”submit”> </form> then … Read more

Host Images from Link

What Chip said; the native importer tool (look in Tools > Import) should have imported everything. But if it didn’t, and you already have the rest of the content, you can run this plugin to bring over all your images: http://wordpress.org/extend/plugins/cache-images/ Best of luck!

Attach unzipped files to wordpress

After you unzipped the file to $folder[‘path’] you have to manually add all unzipped files to the $_FILES array and do media_handle_upload, etc. for them. You are iterating over it, so you may create a temporary $unzippedfiles array and push all unzipped files into it. You have to create for each file an entry similar … Read more

Disable media upload in rich text editor

You simply set the parameter to false when you create the editor, which you do with a call to the_editor as follows: <?php the_editor($customcontent, $id = ‘CustomContent’, $prev_id = ‘title’, $media_buttons = false, $tab_index = 2); ?> The first parameter is the content that should be used to fill the editor when the page loads, … Read more

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