Generate Picture Element in WordPress

Generate Picture Element in WordPress

With responsive images you have 2 option s srcset (the default WordPress method) or the picture element. I prefer to use this so wrote a little helper to add to my WordPress Projects.