i’m just trying display image on my wordpress page from admin panel… and it works, but it generates me a lot of useless attributes… now its looks like this:
<img class="alignnone size-full wp-image-50" src="uploads/2016/02/moves.jpg"
alt="moves" srcset="uploads/2016/02/moves-300x191.jpg 300w,
uploads/2016/02/moves.jpg 700w" sizes="(max-width: 700px) 100vw, 700px">
i need only this:
<img class="wp-image-50" src="uploads/2016/02/moves.jpg alt="moves">
How to fix it?
You can use
wp_get_attachment_image_src
examplein HTML