Magazine Shortcodes

Standard Theme Shortcodes

Many of the available shortcodes within the NC State theme can be used within a magazine post. The shortcodes below are some of the most commonly repurposed shortcodes within a magazine post.

Code Includes

The [code_include] shortcode is unique to digital magazines. It allows developers and designers to create custom elements to display within a post. The [code_include] shortcode also allows you to embed oembed content such as videos into a post.

Related Stories

One or more related stories should be wrapped within [related_stories] [/related_stories] tags by using the [story] shortcode.

Example

[related_stories section_title="Section Title" align="right"]
    [story title="Interesting Headline" teaser="This is the teaser" pic_id="23" url="http://nytimes.com" url_text="Read More"]
    [story title="One More" teaser="This is a slightly longer teaser with more words" url="http://nytimes.com" url_text="Read More"]
[/related_stories]

Related Stories

Parameter Description Default/Required
title Title for collection of related stories no
align Left or right floated alignment of stories right (default) or left

Story

Parameter Description Default/Required
title Title of story Required
pic_id ID of related picture Optional
url URL of related story Required
url_text CTA text Optional

Related Topics