Shortcodes

Since version 1.9.2, the secondary title of a post can also be accessed through the following shortcode:

[secondary_title]

When placed into the content area of a post, page or custom post type, this shortcode will be replaced with the corresponding secondary title. The shortcode can be extended through its parameters.

Parameters

  • post_id (int): The ID of the targeted post. Default: Current post ID.
  • allow_html (bool): Renders HTML code used in the secondary title. Default: true

Examples

  1. [secondary_title allow_html="true"]

  2. [secondary_title allow_html="false" post_id="31"]

  3. [secondary_title post_id=117] (Shows the secondary title of the post with the ID 117)

results matching ""

    No results matching ""