Add Caption to image in WordPress

Here is a sample post that has text with an image with a caption that is centered below it.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer viverra, orci sit amet mollis cursus, eros mi iaculis neque, non consectetur risus leo at dui. Mauris sit amet scelerisque leo. Donec nunc urna, dictum at massa in, aliquam cursus lectus. Maecenas rhoncus vulputate justo, eget venenatis metus fringilla ac. Suspendisse euismod, tortor quis imperdiet finibus, lectus felis hendrerit erat, ac dignissim

leaf graphicBoy Scouts

tortor tellus nec lectus. Aenean ultrices imperdiet arcu eleifend molestie. Aenean aliquet non urna at rhoncus. Nunc ut aliquet nisl, sit amet pulvinar nisi. Vivamus facilisis urna magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. In et metus sed dolor ornare vehicula vel quis ante. Etiam at malesuada libero, eu scelerisque leo. Mauris tempor sed dui at porttitor. Sed augue odio, luctus at nibh at, aliquam mollis felis. Cras dui urna, aliquet vitae aliquam ut, imperdiet vitae sapien. Maecenas ut congue tellus.

The code that I used came from the https://codex.wordpress.org/Wrapping_Text_Around_Images site.

Here is the code I used:

Leave a Reply