2. Documentation
  3. Functions
  4. Using placeholders for displaying products dynamically

The plugin comes a long with a few placeholders which can be used in order to dynamically display products based on certain parts of your context.

For instance if you want create a list of bestselling products, based on the title of your post, the shortcode looks as follows:

[amazon bestseller="%post_title%"]

Overview of all available placeholders

Placeholder Description
%post_title% Title of the current post
%page_title% Title of the current page
%post_category% Name of the main category of the current post
%yoast_focus_keyword% Only available when using Yoast SEO.
Right now placeholders can only be used in combination with the bestseller shortcode.

Was this article helpful?

Related Articles