Shortcode

The shortcode used with Zed Press is:

[zedpress]

It does not require any attributes. Using as above will show products from the public marketplace.

You can now add shortcodes using the Visual editor in WordPress. Just press the 'Z' icon. Fill in the options you wish, or just press 'OK' to use defaults. If you prefer to manually write your shortcodes then please read on.

The two main attributes used with the shortcode are:

  • store_name to display the products from a particular store.
  • collection to display the products from a collection.

The store_name is the name of your store. That is the name used when creating the store and is visible in the URL when viewing your storefront.

[zedpress store_name="lisamarieart"]

The collection is a numerical ID used by Zazzle and can be found by visiting the collection of your choice on the Zazzle website. Once at the collection grab the long number shown on the end of the URL in your browser's address bar. Use that number as the value for this attribute.

[zedpress collection="119954535304757513"]

Optional Attributes

Use any of the following attributes to customize the output of the shortcode further.

  • keywords to specify a search string. Separate with spaces. Note that too restrictive a query can cause no results to be returned. In this case an error will appear.
  • category to specify a store category. Use the number after cg= in the URL when viewing the store category you wish to use.
  • department to filter by a particular product type. To get this number please use the department selector on the Zazzle website you will need to be logged into your Zazzle account to view it. There is no list here because their selection is very large and it is constantly updated.
  • sort_type to specify a sorting method. Allows two options. popularity or date_created.
  • sort_pop to specify a time period for popularity sorting. Can be:
    • 0 most popular ever
    • 1 most popular today
    • 7 most popular this week
    • 30 most popular this month
  • page to specify which page of results to start from.
  • per_page to specify how many products to show per page.
  • bg_color to specify what color the product image background should be. Please use a hex code such as FFFFFF do not include the # in your color.
  • referral to specify your referral ID. Find it on your associates page when logged into Zazzle. Adding this will automatically add your referral code to all outgoing links generated by the shortcode.
  • tracking to specify a tracking code. The code specified will be shown in your earnings if a referral is earned through any product output by this shortcode. The code can be anything you wish to identify that specific shortcode in your earnings report. It must however be alphanumeric and should ideally only contain hypens (-) or underscores (_) rather than spaces.
  • NEW per_row to specify how many products to show per row. Only guaranteed to work if using one of the pre-defined templates. Can be a number from 1 to 12. Will use the number set in the options page (or 4) if not defined.
  • NEW new_window to specify if links should open in a new window/tab. Should be true or false. Will use the value defined in the options page (or false) if not defined.

You may specify any, all or none of these in a shortcode. If you do not specify per_page and bg_color they will use the values set in the options page. All other values will be left empty or will revert to the default set by Zazzle. An example of multiple attributes being used is:

[zedpress store_name="lisamarieart" per_page="12" tracking="shop-page"]