Home Shortcodes Other Shortcodes

Google Maps

You can insert a Google map into your posts and pages.

[google_map src="https://maps.google.com/maps?q=Boring,+oregon&hl=en&sll=37.666429,-103.798828&sspn=15.476189,20.192871&hnear=Boring,+Damascus,+Clackamas,+Oregon&t=m&z=13"]

Parameters

width
(int) (Optional) The width of the map.
height
(int) (Optional) The height of the map.
src
(string) (Required) The link or embed SRC of a Google map.


Samples

[google_map width="450" height="375" src="https://maps.google.com/maps?q=Boring,+oregon&hl=en&sll=37.666429,-103.798828&sspn=15.476189,20.192871&hnear=Boring,+Damascus,+Clackamas,+Oregon&t=m&z=13"]

Breadcrumbs

You can insert breadcrumbs into your design using a shortcode with optional settings for controlling the navigation and display of the breadcrumb links.

[breadcrumbs]

Parameters

home
(string) (Optional) The text to use for the home link.
blog
(string) (Optional) The title of the blog link when used in post paths.
sep
(string) (Optional) The separator between links. Default: “/”
blogpageid
(int) (Optional) The id of the page to use as the blog link in post paths.
prefix
(string) (Optional) Text to show before breadcrumbs, “You are here: “
archiveprefix
(string) (Optional) Archives page prefix text.
searchprefix
(string) (Optional) Search page prefix text.
boldlast
(bool) (Optional) Make the current page bold. Values: 1 (true) or 0 (false)
catinpostpath
(bool) (Optional) Show category in single post path. Values: 1 (true) or 0 (false)


Samples and Additional Information


Home Shortcodes Other Shortcodes

[breadcrumbs boldlast=1]

Sidebar Shortcode

Insert a sidebar using the shortcode. Sidebars are created using the Sidebar Generator in the theme options.

[sidebar alias="sidebar-alias-name"]

Parameters

alias
(string) The alias of the sidebar to be displayed.

Static Content Blocks

Insert content from the static blocks custom post type directly into your site using a shortcode.

[static_content id="featured-products"]

Parameters

id
(string) or (int) The id or slug of the static block to be displayed.

Members Only

Wrap content in the members only shortcode to hide it from public users.

[members_only]Content only visible to logged in users.[/members_only]

Show important side wide messages for your users while logged in.

[bp_notices]

Public Only

Wrap content in the public only shortcode to hide it from logged in users.

[public_only]Content only visible to public users.[/public_only]

More Shortcodes

Page Title

Can be used in header, footer, or the content area to display the current page title.

[page_title]

Advanced Shortcodes

These shortcodes are designed for advanced users with a deep knowledge of WordPress.

Include Templates

Based on the WordPress function get_template_part() you can include any specific php file into the content. You can like that include php code inside your posts and pages, enhance the functionality without rewriting the theme or include buddypress functionality into your content.

[template_part slug="template" name="author"]

Run Functions

If you need to run a given function in a post, you can do that with the following shortcode. It will use the php function call_user_func($func) to run it.

[fn function="any_function_name"]

You can also pass parameters to the function:

[fn function="calculate" 4 3]

This code would lead to a function call like:
<?php calculate(4,3); ?>

Skins

Launch Skin Picker

Top

Bottom

Close