Capitilize Alt/Title Tag in Image HTML, Reorder HTML Output

I’ll give you a partial answer. In your first function you may use ucwords() PHP function: $alttitle = ucwords( str_replace( ‘-‘, ‘ ‘, $alt ) ); Second task is more complicated. I don’t have a ready solution for you but the direction should be to extract attributes and values from HTML (playing with preg_match()), store … Read more

Disable image rename on upload

The renaming to test1.jpg is not due to any cropping / resizing functions WordPress. This is because you already had a file named test.jpg uploaded, and WordPress does not replace files if one exists in the folder that has the same name. If, for some reason you want it to replace files rather than rename … Read more

a: hover issue with image issues [closed]

This isn’t a WordPress issue, although it IS an easy CSS fix. The small space between the end of image and the slideshow is axtually 2 pixels wide and caused by the #left-area div. You can just up the width by 2 pixels on #left-area. Like this: #left-area { width: 639px; } It is currently … Read more

Exclude image url from search query

try this to exclude images from search. Add code to your functions.php: // Exclude images from search results – WordPress add_action( ‘init’, ‘exclude_images_from_search_results’ ); function exclude_images_from_search_results() { global $wp_post_types; $wp_post_types[‘attachment’]->exclude_from_search = true; }

Removing Images from a WordPress Post

delete_attachment( $attachment_id, true ); wp_delete_post( $attachment_id, true ); Are your best friends. You will need something like this: $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => null, ‘post_status’ => null, ‘post_parent’ => $post->ID, ‘post__not_in’ => array( get_post_thumbnail_id( $post->ID ) ), ); $attachments = get_posts( $args ); if ( $attachments ) { foreach ( $attachments as … Read more

How to implement CSS-defined images from bootstrap site in wordpress theme

Multiple solutions for defining the images -> Post Thumbnails While creating a new post, you can set the Featured Image which will automatically set the post image. Since your image is full width, you need to set the size of the thumbnail using: https://codex.wordpress.org/Function_Reference/the_post_thumbnail Media Upload Go to Media -> Add New. Upload your image … Read more

Whats causing image quality to be degraded?

Some of your images are png: http://www.shoplikeits1999.com/wp-content/uploads/2015/02/Harvest_Moon_64_Coverart.png And that image not 460px by 300px and is being stretched to fit the grid. I would guess that you need to be more careful in which images you upload and how you process the images prior to uploading.