Gallery thumbnails very small
Either use one of the other built-in image sizes, for instance or “large” or “full”, and/or customize the sizes for “thumbnail”, “medium”, “large” under Settings > Media, or add a new image size and use it
Either use one of the other built-in image sizes, for instance or “large” or “full”, and/or customize the sizes for “thumbnail”, “medium”, “large” under Settings > Media, or add a new image size and use it
Remove: $content = get_the_content(); and replace: <p><?php echo $content; ?></p> with: <?php the_content(); ?> See this note on the Codex page for get_the_content(): An important difference from the_content() is that get_the_content() does not pass the content through the ‘the_content’ filters. This means that get_the_content() will not auto-embed videos or expand shortcodes, among other things.
Have you tried doing something like this? I hope it will help: https://www.skyverge.com/blog/custom-post-type-with-image-uploads/
You adjust that when you insert the image into the post, not when you upload it. When you upload the image, you will be looking at it on the Media Library page. On the right hand side is a column that says “ATTACHMENT DETAILS”. Scroll down on that, and look for “ATTACHMENT DISPLAY SETTINGS”. The … Read more
In order for your images to be responsive they require CSS. The CSS will inform the image to stretch 100% of the available space and to automatically adjust the height. img.responsive { width: 100%; height: auto; } Because you don’t want to apply this rule to all images, you’ll need to add a class on … Read more
I used to rely on image gallery plugins, like PhotoQ -which no longer exists- or NextGen. For one, a plugin may die and leave a migration problem, or it may be well maintained but require too much of custom coding. Nowadays I try to keep it within WordPress attachment post type. A plugin may handle … Read more
I guess you were sorta correct, @david.binda, lol! After a lot of reading, and experimenting, I added the code below to the else statement in my functions file, and it appears to be working as it did before, although the process seems a lot “bulkier” with the new gallery trying to do it’s thing. $post_content … Read more
I just pulled my hair out for a bit over this. I’ve come to the conclusion that the plugin called “Lightbox Gallery” is to blame. Were you using the same? If so, remove it, and you’ll see that your pages link to the full sized images. Try a different lightbox plugin. I’ve used this plugin … Read more
I know this is a bit of cheating but if I use this code essentially I achieve what I want, albeit the thumbnails are loaded on the page unnecessarily.. <div style=”height:100px;overflow:hidden;”> </div>
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 -> ‘post-thumbnail’ the_post_thumbnail( ‘thumbnail’ ); … Read more