What shortcodes are available in Tribe Theme? | Notable Themes™

What shortcodes are available in Tribe Theme?

Tribe Theme has a number of handy shortcodes that are designed to make your life easier.

Not familliar with shortcodes in WordPress? Click here to learn more.

Callout

[callout]

Requires an opening and a closing tag.2 It adds a yellow box around the surrounded content.

BlueBox

[bluebox]

Requires an opening and a closing tag.2 It adds a blue-colored box around the surrounded content. 

Special Box

[special]

Requires an opening and a closing tag.2 It adds a grey-colored box around the surrounded content.

Author

[author]

Must be in the context of a post or page.1 Name of the post’s author, with a link that author’s website.

Author with Archive Link

[author-with-archive-link]

Must be in the context of a post or page.1 Name of the post’s author, with a link that author’s archive.

Comments

[comments]

Must be in the context of a post or page.1 A link to the comments section.

Categories

[categories] 

Must be in the context of a post or page.1 Shows the categories under which your post was published.

Example usage: Filed under [categories].

Date

[date] 

Must be in the context of a post or page.1 The date the page or post was published.

Example output: August 4, 2014

Edit

[edit]

Must be in the context of a post or page.1 A handy link that lets administrators edit the page. Only visible if the viewer is logged in and has proper permissions.

Tags

[tags] 

Must be in the context of a post or page.1 Lists all of the tags that a post has.

Button

[button link="http://apple.com" text="Apple's Home Page"] 

Displays a button which links to a specific page. The link argument is the URL visitors go to when they click the button, and the text argument is the text that appears on the button. In this example we’re linking to Apple’s home page. You specify the background of the button in your primary Tribe Settings page.

Share Quote

[share-quote author="Abraham Lincoln" via="JeffGoins"] This is a quote [/share-quote]

Requires an opening and a closing tag.2 Formats a quote as a tweetable block. You can optionally use the via attribute to override the Twitter handle set in your Tribe settings.

Example usage: [share-quote author=”Abraham Lincoln” via=”JeffGoins”] This is a quote [/share-quote]

Popular Articles

[popular-articles showposts="15" category="Popular" showcommentcount="yes"] 

Shows popular articles with the comment count next to it, by default showing 15 posts (or fewer if you don’t have that many) from the Popular category. If nothing appears then your category name is either incorrect or you don’t have any posts assigned to it. If you want to suppress the comment count, just set it equal to “no” instead.

Site Name

[site-name] 

Shows the name of your site (e.g., Tribe Theme Members).

Copyright Year

[year]

Shows current year (currently 2016, but updates dynamically).

LoggedIn

[loggedin] 

Requires an opening and a closing tag.2 Anything inside of it will appear to users who are logged in.

Not Logged In

[not_loggedin] 

Requires an opening and a closing tag.2 Anything inside of it will appear to users who are not logged in. It will not appear to users who are logged in.

1 Technically speaking, this means it must be in The Loop. In other words, it cannot be in a widget or some other piece of content that’s not directly associated with the post or page being displayed.

2 An example of a shortcodes containing an opening and closing tag looks like this: [some-shortcode]Some content goes here[/some-shortcode]. Note that the only difference between the opening and closing tag is the forward slash (/) in the closing tag.