Documentation: Shortcodes

Shortcode background and usages

Note: delete or make this page private before the site is live.

  • Listing of shortcodes outlined with examples below.
  • Where possible, we use parameters/attributes within the shortcode so one shortcode can be used in different scenarios or for different post types.
  • Shortcodes should all be kept in the theme/includes/custom-shortcodes.php file or they will be FacetWP shortcodes
  • Shortcodes and parameters use WP_Query. Additional information on basic functions i.e. order, orderby, etc can be found in WordPress Codex. 

&#91latestposts]

[latestposts]
[latestposts posts="posttype" per_page="number" order="ASC/DESC" orderby="field to orderby"]

Available attributes:

  • posts (the post type)
  • per_page (how many to show in the first list of results)
  • order (ASC or DESC)
  • orderby (the field or item to orderby. See WP_Query codex for more)

Default settings:

  • posts = post
  • per_page = 3
  • order = DESC
  • orderby = date

Example:

For Resource posts, 10 per page, ordered by date, descending

[latestposts posts="resource" per_page="10" order="DESC" orderby="date"]
What SAMA’s Pan-European Conference Revealed About the Future of Strategic Account Management
Blog

What SAMA’s Pan-European Conference Revealed About the Future of Strategic Account Management

From AI and the future of SAM talent to executive sponsorship and customer trust, the 2026 SAMA Pan-European Conference explored what it takes to build stronger strategic partnerships.

Read More
One Playbook, Ten Markets: Why Global Account Planning Breaks Down
Podcast

One Playbook, Ten Markets: Why Global Account Planning Breaks Down

Global account planning requires consistency, but a one-size-fits-all approach rarely works across different markets. In the third and final installment of SAMA’s...
Read More
Does Strategic Mean Important?
Blog

Does Strategic Mean Important?

Does “strategic” simply mean “important”? Javier Jaime challenges how sales organizations use the term and argues that real strategy begins when limited resources force a choice about where to concentrate…and where not to.

Read More
[relatedpt]
[relatedpt posts="posttype" per_page="number" order="ASC/DESC" orderby="field to orderby" title="Related People"]

Available attributes:

  • posts (the post type) {post type and acf field name should be same}
  • per_page (how many to show in the first list of results)
  • order (ASC or DESC)
  • orderby (the field or item to orderby. See WP_Query codex for more)
  • title (slider title)

Default settings:

  • posts = post
  • per_page = 10
  • order = DESC
  • orderby = date
  • title = Related People