Tag Info

New answers tagged

0

code from my theme adjusted to you <fieldset class="images"> <input type="file" name="my_file_upload[]" id="my_file_upload[]" multiple="multiple"> </fieldset> <fieldset class="memes"> <input type="file" name="my_file_upload[]" id="my_file_upload[]" multiple="multiple"> </filedset> and its working


0

here if you use custom template past this in the begining <?php if( 'POST' == $_SERVER['REQUEST_METHOD'] ) { if ( $_FILES ) { $files = $_FILES["my_file_upload"]; foreach ($files['name'] as $key => $value) { if ($files['name'][$key]) { $file = array( 'name' => ...


2

Hey if you want to add custom image size then add the following code in your function.php file add_image_size( 'thumb', 220, 180, true ); and then call featured image in your template like this <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. the_post_thumbnail('thumb'); } ?> i think it will ...


-2

Check this link. I hope this may help you.


0

I found a solution; use pre_get_posts: add_action( 'pre_get_posts', 'modify_attachments' ); function modify_attachments( $query ) { if ( is_admin() && strpos( $_SERVER[ 'REQUEST_URI' ], 'admin-ajax.php' ) !== false ) { add_filter( 'posts_groupby', 'group_attachments' ); } return $query; } function group_attachments( $groupby ...


0

It looks like Wordpress 4.0 (or earlier) has removed the need for the editor, as I was able to easily not include it.


0

I am aware of that, but that still means you have to click through several images before you can find the one you are looking for


0

Clicking on the image will display all of the information about it, including the file name, on the right.



Top 50 recent answers are included