A little about working with Portfolio Shortcodes

Demo Image

Portfolios are a little more flexible than Galleries are in their usage.

Galleries are a single page of images that will open in lightbox.

Portfolios are multiple posts displayed on a page with optional pagination.

This means it’s like a set of blog posts but dynamically laid out as a Portfolio when the shortcode is used.

Like blog posts, it’s a custom Post Type that you create individual posts in.

Each post is a single Portfolio item and it comes with multiple options.

For example, if you want to create a Portfolio item for a client session.

Inside it, you want to display to that client the images from that session (using the Gallery shortcode).

You can password protect this too and provide that client with a private session – only available to them.

The main page / post that displays your Portfolio items, you can choose whether or not to show more images.

To show more images when clicking the thumbnail in lightbox (which is optional) you can attach more media.

This is done by ‘Add Media’ option at the top, attaching more images to that specific portfolio post.

These images (if lightbox is enabled) will then show up as additional images when the thumbnail is clicked.

Portfolios also have the capabilities of showing ‘Videos’ in lightbox.

You can display videos from YouTube and Vimeo, as well upload and link to your own MP4 videos or embeds.

Portfolios are filtered based on the ‘Category’ associated with the shortcode being used.

Here is an example of different options in a Portfolio Shortcode.

[[portfolio cats=”” per_page=”10″ orderby=”date” order=”desc” title=”true” description=”true” filter=”false” layout=”2columns” pagination=”true”]]

The options available to the Portfolio shortcodes are as follows:
OptionValueDescription
cats1,2,3,4Left blank will display all. To display specific Categories enter the ID. To show multiple separate by a comma.
per_pagetrue or falseNew to Version 5.0.9 you can now add Category Filters. This requires multiple categories to work.
orderbymenu_order, rand, dateDetermine the order the Portfolio will use when displayed.
titletrue or falseYou can disable Portfolio item titles from being displayed.
descriptiontrue or falseYou can disable Portfolio item descriptions from being displayed.
filtertrue or falseNew to Version 5.0.9 you can now add Category Filters. This requires multiple categories to work.
layout2columns, 3columns, 4columns, gridChoose how many columns to display your Portfolio items in (1 column portfolio is coming soon).
paginationEnter the number of portfolio items you want displayed (ie., 8).

Portfolios offer a diverse set of options that can be used to cater to a lot of outside-the-box ideas. The only limitations to this would be your imagination as you get control over it all and just as you do with Galleries, can re-use these conveniently throughout your website with unlimited restrictions.

Here’s a video tutorial that will help:

2 thoughts on A little about working with Portfolio Shortcodes