Portfolio Shortcode

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

If you add the shortcode [portfolio&] it embeds an archive view of your portfolio projects for all project types. You customize how the projects are displayed depending on how you use the optional attributes to customize the portfolio layout.

Example 1

The following shortcode will display up to ten portfolio projects in three columns from the project type “Man-made”, from newest to oldest, without a content excerpt.

[portfolio display_types=true  include_type=man-made display_content=false columns=3]

[portfolio display_types=true include_type=man-made display_content=false columns=3]

Example 2

The following shortcode will display up to ten portfolio projects in three columns from the project type “Man-made”, from newest to oldest, with a content excerpt.

[portfolio display_types=true  include_type=man-made display_content=true columns=3]

[portfolio display_types=true include_type=man-made display_content=true columns=3]

Attributes

You can use the following optional attributes to customize your portfolio layout.

  • 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)
  • order: display projects in ascending or descending order. Defaults to ASC for sorting in ascending order, but you can reverse the order by using DESC to display projects in descending order instead. (ASC/DESC)
  • orderby: sort projects by different criteria, including author name, project title, and even rand to display in a random order. Defaults to sorting by date. (author, date, title, rand)