HTML in data array() | WordPress.org

[ad_1]

Hi @pixelcrash ,

The data array can contain any JSON-able content, including HTML.

On the template side, use triple curly brackets instead of pairs to render the HTML within.

For some reason Gutenberg is removing all the braces when I try to give you an example with three, so just imagine{{htmlcontent}} with an extra { and } on either end. Haha.

Note that I accidentally introduced entity encoding issues in the last release while trying to replace a deprecated PHP method. That should be fixed in 2.4.4.

  • This reply was modified 11 hours, 23 minutes ago by Blobfolio.
  • This reply was modified 11 hours, 22 minutes ago by Blobfolio. Reason: Gutenberg is breaking the formatting. Haha
  • This reply was modified 11 hours, 19 minutes ago by Blobfolio. Reason: Gutenberg fail. Haha

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer