New answers tagged

-1

The default image sizes of WordPress are “thumbnail”, “medium”, “large” and “full” (the size of the image you uploaded). These image sizes can be configured in the WordPress Administration Media panel under Settings > Media. This is how you can use these default sizes with the_post_thumbnail(): the_post_thumbnail(); // without parameter ...


0

The gallery shortcode is contained in the wp-includes/media.php file. There is a function gallery_shortcode( that does all work. About 25 lines down you find: $output = apply_filters( 'post_gallery', '', $attr, $instance ); if ( $output != '' ) { return $output; } This code goes out and runs any filters tethered to post_gallery, and ...



Top 50 recent answers are included