Because of using a magnifying glass script, I need to load the full image in the article (not featured image), even if the customer is choosing a thumbnail.
Example... this code should be generated:
<img src="..../uploads/image.png" width="300" height="500" />
and not
<img src="..../uploads/image-300x500.png" width="300" height="500" />
Anybody with a cool snippet for that? Thanks!
EDIT: I mean images that were used in the article, not the post/featured/thumbnail images-function.
You can get image thumbnail first then can inset in image tag. And in "get_post_thumbnail_id" you can insert any size that you define in your code. thumbnail is already define size in your function.php.
here is code for custom image upload in wordpress
There are four valid sizes built in to the WordPress core.
The last is one you're looking for.
The following returns the URL. With full size.
for Blog Image you can use -
If you want to set image size in code you can use following code in function.php file
then use this size here
You can use the_post_thumbnail('full','true'); to get the original image size. OR You can also use
in your function.php