1. Home
  2. Docs
  3. Masonry Plugin
  4. The Shortcode Builder
  5. Adding a Shortcode to your website

Adding a Shortcode to your website

Shortcodes can be added to your website in a few different ways.

You can simply add the shortcode [ yumjam-masonry ] to the body content of any post, page, widget.  When WordPress parses the post, page, widget content it converts the shortcode text into the appropriate output.

Shortcodes can also be added to PHP templates using the following code:

echo do_shortcode( ‘ [ yumjam-masonry ] ‘ );

when the template is executed or included the do_shortcode fuction will return the appropriate output which can then be echoed to the page.


Was this article helpful to you? Yes No

How can we help?