Appearance, Shortcodes

Portfolios »Portfolio Shortcode

You can use shortcodes to embed portfolio projects on posts and pages.

Embedding Portfolio Projects

To embed portfolio projects on posts and pages, first activate the Portfolio custom content type on your site and add some projects to your portfolio.

Next, add the [portfolio] shortcode to a post or page. The shortcode will display projects in different ways, depending on how you use the optional attributes to customize the portfolio layout.

Example of the shortcode in the Illustratr theme

Example of the shortcode in the Illustratr theme

 

Attributes

  • ‘display_types': display Project Types. (true/false)
  • ‘display_tags': display Project Tags. (true/false)
  • ‘display_content': display project content. (true/false)
  • ‘include_type': display specific Project Types. Defaults to all. (comma-separated list of Project Type slugs)
  • ‘include_tag': display specific Project Tags. Defaults to all. (comma-separated list of Project Tag slugs)
  • ‘columns': number of columns in shortcode. Defaults to 2. (number, 1-6)
  • ‘showposts': number of projects to display. Defaults to all. (number)

↑ Table of Contents ↑

Example

[portfolio display_type=true display_tags=false include_type=ui-design,app-design columns=3 showposts=10]
The example will display up to 10 portfolio projects in 3 columns. It will display Project Types, hide Project Tags, and only display projects that are assigned the “UI Design” or “App Design” Project Types.

Example of the shortcode in the Espied theme

Example of the shortcode in the Espied theme

Not quite what you're looking for?

Get Help