Home » WordPress » Page 4

How To Create A Shortcode For A Blank Or Empty Line On WordPress

There are plenty of right ways to create blank spaces and empty lines on WordPress including the use of amperstamps, rule tags, creating tables, columns, and more. In this code snippet we used an amperstamp with paragraph tags to be used as a PHP function, so when the new shortcode is inserted an individual blank line or empty space is created.

How to use WordPress Shortcodes in PHP

PHP files and theme/template files on WordPress do not translate shortcodes in regular [shortcode] format. Instead a very simple solution is to use the shortcode, and the do_shortcode function, inside a PHP echo tag.