Portfolio Shortcodes

Description


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



Portfolio from Categories


[portfolio category="7,8,9" columns="4" content_width="926" image_ratio="4:3"]

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.

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.

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)


Examples

Portfolio items from categories with paging and excerpt:

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


Portfolio Items from Pages


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


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.


Examples


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"]
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

Primeros pasos

Descubre como participar en esta comunidad gratuita de estudiantes de idiomas
recetas de cocina
 

Siguenos

DEPARTAMENTOS

Comunidad de estudiantes

Idiomas Gratis es una red social abierta a la participación de todos que trata de recoger los distintos recursos gratuitos para aprender idiomas que se encuentran en internet y crear una comunidad de estudiantes para la ayuda y el beneficio mutuo

¿Que ofrecemos?

Idiomas Gratis dispone de un foro por cada idioma que ayudará a los estudiantes a intercambiar conocimientos y recursos. Un buscador de alumnos para encontrar compañer@s de intercambio y un completo catalogo de cursos y recursos gratuitos reunidos con la colaboración de la comunidad.
Follow: Facebook |
Copyleft © 2014 Idiomas Gratis. Puedes distribuir los contenidos de esta web libremente citando las fuentes.
Abrir la barra de herramientas