• Home
  • About Hope
  • Blog
  • Resources
    • Hope Minutes
  • VA Services
  • Contact
    • Skip to primary navigation
    • Skip to main content
    • Skip to primary sidebar

    You are here: Home / Shortcodes / Portfolio Shortcodes

    Portfolio Shortcodes

    Description

    [hr]

    Insert a series of images and descriptions using the portfolio shortcode.

    [clear] [clear] [portfolio post_type=”page” post_parent=”1002″ content_width=”687″ image_ratio=”3:2″ columns=”4″ paging=false posts_per_page=”4″ orderby=”rand” order=”ASC”]

    [clear] [clear]

    Portfolio from Categories

    [hr] [code][portfolio category=”7,8,9″ columns=”4″ content_width=”926″ image_ratio=”4:3″][/code] [clear]

    Parameters

    category
    (string) The category ID’s to pull portfolio items from. Can be entered as a comma separated list.
    columns
    (integer) (Optional) The number of columns to create. Default: 3
    content_width
    (integer) (Required) The area available for portfolio columns to display. This is determined by the layout being used and must be entered.

    [clear] Standard column widths:

    • Full width: 926
    • Half width: 449
    • One third width: 289
    • Two thirds width: 607
    • One fourth width: 210
    • Three fourth width: 687
    image_ratio
    (string) (Optional) The image ratio for image size. The image width is determined by the number of columns divided by the content area width. Image height is produced as a result of the image ratio. Default ratio is “3:2” (w:h).

    Any ratio can be used.
    [clear] Common ratios:

    • 1:1
    • 2:1
    • 3:2
    • 4:3
    • 16:9
    link
    (string) (Optional) Image links to the post/page or lightbox full size image. Values “post”, “lightbox”. (Default: lightbox)
    title
    (string) (Optional) Include the title for the item. “Yes” to include title. Exclude field for no title.
    excerpt
    (string) (Optional) Include the excerpt for each item. “Yes” to include excerpt. Exclude field for no excerpt.
    excerpt_length
    (integer) (Optional) The length of the excerpt, number of words to display.
    posts_per_page
    (integer) (Optional) The number of items to display on each page.
    paging
    (bool) (Optional) Enable paging. (true/false)
    [clear] [clear]

    Examples

    [clear]

    Portfolio items from categories with paging and excerpt:

    [portfolio category="7,8,9" excerpt="yes" paging="true"]
    [clear][clear]

    Portfolio Items from Pages

    [hr]

    Portfolio items may also be generated from pages using a list of page ID’s or the child pages from a parent page ID.

    [clear] [clear]

    Page Parameters

    post_type
    (string) (Required) Directs the query to use pages instead of posts. Must include the value “page”.
    page_id
    (string) The page ID’s to include. Can be entered as a comma separated list.
    post_parent
    (integer) (Optional) Show child pages of the selected parent. Similar to using a category for posts.
    [clear] [clear]

    Examples

    [clear] [clear]
    Portfolio items from list of page ID’s:
    [portfolio post_type="page" page_id="10,11,12"]
    Portfolio items from child pages from parent page ID:
    [portfolio post_type="page" post_parent="9"]
    [message_box type=”info” icon=”yes”]When you create video portfolio items you can specify the video size in the URL. For example, if adding the video: http://www.youtube.com/watch?v=B7UmUX68KtE&hd=1 you could specify the width and height by entering http://www.youtube.com/watch?v=B7UmUX68KtE&hd=1&width=1280&height=720 [/message_box]

    Primary Sidebar

    Hi There!

    Hi There!

    Hi there, I'm Hope! Thanks for stopping by my site! I'm grateful that you stopped and took a few minutes to visit.

    A little about myself...

    I'm a single mom, a professional, a Hope and Empowerment Coach, and a fighter of depression and anxiety. Here, I am ME. No more, no less. Come hang out with me. You're welcome here, just the way you are!

    Subscribe to Blog via Email

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    SUBSCRIBE

    Web Hosting

    Categories

    • Blog
    • Business
    • Depression
    • Entrepreneurship
    • Fullwidth
    • Lifestyle
    • Miscellaneous
    • Self-Love
    • Spirituality

    Archives

    SUBSCRIBE TO MY NEWSLETTER!

    Every month get a newsletter filled with uplifting stories of hope and productive tips!

    • Facebook
    • Instagram
    • Twitter
    • Pinterest

    © 2019

    We are using cookies to give you the best experience on our website.

    You can find out more about which cookies we are using or switch them off in settings.

    Powered by  GDPR Cookie Compliance
    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

    Strictly Necessary Cookies

    Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

    If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

    Cookie Policy

    More information about our Cookie Policy