Tag Archives: Portfolio

Display random projects using short code block in WordPress


We have seen how to use short code to play with portfolio projects, I have few more posts in this category.

How about a random wise project list , in a page or post, which changes the order each time load. A customization of short code will make it possible

portfolio showposts=3 orderby=rand

You can specify number columns using columns parameter and number of posts using showposts parameter

  • display_types: display Project Types – displayed by default. (true/false)
  • display_tags: display Project Tag – displayed by default. (true/false)
  • display_content: display project content – displayed by default. (true/false)
  • display_author: display project author name – hidden by default. (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)

How to add to post/page

  • Add a short code block
  • Add the customized portfolio code [Above]
  • Preview and Publish changes

More on WordPress and Short Code

Display specific type of portfolios using Short Code in WordPress


How to display only specific portfolio projects in a page/posts using short code block in your WordPress website ?

Portfolio short code can be customized. Following are the list of attributed you can use

  • display_types: display Project Types – displayed by default. (true/false)
  • display_tags: display Project Tag – displayed by default. (true/false)
  • display_content: display project content – displayed by default. (true/false)
  • display_author: display project author name – hidden by default. (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)

Display only specific post types

You can specify post types as include_type and it will look like

portfolio include_type="Flutter"

You can also hide showing display type by using display_types=false false

Organize Portfolio projects in WordPress as Page


Portfolios area great ways to show case your projects in a blog. You can include them into separate menu [Projects].

How about organize the whole projects into a static page. Every time you add a project, it should update automatically, sound good ,isn’t it?

  • Create Static Page whatever block you want to use, go head. Have a clear design and description of your page with skills set.
  • Add a Short Code block after the details section and add the following short code into the block

portfolio

The page will be automatically added to the Menu section or you can add the page menu using Customize design option from your admin menu.

Now every time you add a project it will added to the portfolio project page by short code.

Here is example of portfolio page , my projects