With WordPress, when you add a featured image to your page or post, the output of

shows up like this:

If you try adding the post thumbnail code to a DIV:

the output will be:

The above does not work. So I was in need of finding a great way to strip out the

code and just be left with the absolute path to the image. I found a simple tutorial here that explains how to do this. In short, here’s all the code you need:

The end result will be: