collection-{id}.php content template

content template used for a specific collection page by id.

The collection-{id}.php content template file is used for the content of a specific product collection page, specified by category/tag/term ID. The collection-{id}.php content template is more specific than category.php.

collection-{id}.php has the identical use as the category-{id}.php template, but is named more properly, as both templates are used for specific product collections, which can represent collections based on product categories, tags, and other product taxonomy terms, not just categories.

Installation

This template file is used when located in the shopp subdirectory of your theme.

For instance, if your “My Theme” WordPress theme is located at:

/my-site/wp-content/themes/my-theme/

Any Shopp content templates should be added to:

/my-site/wp-content/themes/my-theme/shopp/

Some of the more general content templates have examples that can be installed in your theme, using the Content Template Starter Set. The Content Template Starter Set can be installed from your WordPress Admin by navigating to Shopp → Setup → Presentation → Theme Templates.

Example

collection-10.php used for product collection (category, tag, term) with ID 10.

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar