How to change Thumbnail size of next Gen Gallery plugin?

For the specific display you will need to re-open the IGW by clicking on the preview image in the post/page then under the customizations tab change the override thumbnail size option to yes and set the dimensions as needed. You may need to clear your image cache under Gallery > Other Options > Miscellaneous to … Read more

How to prevent resized featured images?

Featured image sizes are mostly likely controlled by your theme, so I would look there. Maybe there is a theme setting for it. You can also check the following setting to see if it us using one of those sizes. You can change the featured image size by adding this code into your functions.php file. … Read more

Can’t access ‘Store uploads in this folder’

This is a very good question. The answer to the referenced post requires a change to the WP options. They are stored in the database in the wp_options table (assuming wp_ is your prefix). There are a few ways to change these in this case: Direct DB access: if you’re comfortable modifying the WP DB … Read more

How to make programmatic image upload generate thumbnail and sizes?

In order for wp_generate_attachment_metadata() to work properly in that it creates a thumbnail and other intermediate/image sizes like medium and large, the image attachment/post data must have the proper MIME type (post_mime_type), and despite you did set it in your $attachment array (the post data), there’s a problem with this part in your code: $wp_filetype … Read more

Is there a better way to implement responsive images than what WordPress uses by default?

Unfortunately, I’ve found the images within Gutenberg/block editor a lot left to be desired and the development work with images in 2020 has been primarily focused on adding cropping, rotating images within the block editor. The limitations of responsive images in the block editor is one of my biggest criticisms of the block editor. What … Read more

Plugin to tag (add a class to?) images attached to a post?

register_taxonomy_for_object_type(‘post_tag’, ‘attachment’); should do the trick. I think you could even do this from your themes functions.php . Edit: ok, try this (save as attachmenttags/attachmenttags.php in your plugins folder and make sure WP can read it, then activate in plugin manager): /* Plugin Name: AttachmentTags Description: enables tagging attachments Author: Wyrfel <[email protected]> Version: 0.1 */ … Read more

Why are images not displaying?

Go resave your Permalink settings to correct the .htaccess file. Multisite systems have a slightly different .htaccess configuration. Specifically, they have this line in them: # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] That lets the /files/whatever URLs get routed to the proper location. Edit: sorry, just noticed you’re using ISAPI Rewrite. Create a new rewrite … Read more