Documentation

Reusable Content & Text Blocks WordPress Plugin

Other Useful Shortcodes 2017-11-24T10:36:25+00:00

Other Useful Shortcodes

The following useful shortcodes, which can be used within content blocks as well as other places such as pages/posts, are provided by the plugin:

Date & Time:

The current date/time in standard PHP date format strings (See http://php.net/manual/en/function.date.php):

[ls_content_block datetime="<DATE/TIME FORMAT>"]

For example, the current date in dd/mm/yyyy format would be:

[ls_content_block datetime="d/m/Y"]

Site Title:

The title of your WordPress site as set in WordPress administration area – Settings > General:

[ls_content_block info="site-title"]

Current Page/Post Title:

[ls_content_block info="page-title"]

Note that this is the raw title of the page/post and not the same as the title within the HTML title tag, which can be changed by SEO plugins.