Shortcode

(Since 1.6.7) -- embed pod items into WP posts or pages
Shortcode allows you to place Pod items directly into WP Posts, WP Pages, and Pod Pages.

Usage

[pods name="event" order="id DESC" limit="10" template="event_list"]
[pods name="event" slug="wordcamp-dallas-2009" template="my_event_detail"]

Available Tags

AttributeDetails
name (required) the pod name
id (optional) the pod item's ID, if retrieving a specific item
slug (optional) the pod item's slug, if retrieving a specific item
order (optional) This is the equivalent of ORDER BY in MySQL. It is overridden when id or slug are defined. Default: "id DESC"
limit (optional) The maximum number of items to return. Default: 15
where (optional) This is the equivalent of WHERE in MySQL. It is overridden when id or slug are defined.
col (optional) The name of the column to return from a specific Pod Item. id or slug MUST be defined for this option to work.
template (optional) The name of the template to use. "col" must NOT be defined for this option to work.
helper (optional) If using col, an optional Display Helper to pass the value through

Examples

[pods name="event" order="id DESC" limit="10" template="event_list"]

[pods name="event" order="id" limit="10" template="event_list"]

[pods name="event" order="t.name ASC,t.id DESC" limit="10" template="event_list"]

[pods name="event" order="pickname.name DESC" limit="10" template="event_list"]

[pods name="event" order="t.id" limit="10" template="event_list"]

[pods name="event" id="2" template="event_detail"]

[pods name="event" slug="my-event-slug" template="event_detail"]
See Also