---
title: Template Placeholders and Styling Reference
description: Reference for the WooCommerce products per page template placeholders and styling fields, with example templates.
url: "https://wpfactory.com/docs/woocommerce-products-per-page-placeholders/"
updated: "2026-09-27"
category: References
---

# Template Placeholders and Styling Reference

The [Number of Products per Page - Pagination Manager for WooCommerce](https://wpfactory.com/item/products-per-page-woocommerce/) plugin builds the selector from a text template with placeholders, plus a few styling fields. This reference lists every placeholder and styling option in Products per Page, with its exact behavior.

These fields live in the Template Options block at **WPFactory > Products per Page** (also reachable at **WooCommerce > Settings > Products per Page**).

![Products per Page Template options and placeholders](https://wpfactory.com/wp-content/uploads/Template-Options.png)

### Placeholders

| Placeholder | Outputs |
| --- | --- |
| `%from%` | The first product number shown on the current page |
| `%to%` | The last product number shown on the current page |
| `%total%` | The total number of matching products |
| `%dropdown%` | The selector as an HTML `<select>` dropdown |
| `%radio%` | The selector as a set of radio buttons |
| `%select_form%` | Deprecated alias of `%dropdown%`. Use `%dropdown%` instead |

The default template is: `Products <strong>%from% - %to%</strong> from <strong>%total%</strong>. Products on page %dropdown%`. Include either `%dropdown%` or `%radio%` so shoppers have a control to interact with.

### Styling and wrapper fields

| Field | Option ID | Applies to |
| --- | --- | --- |
| Selector class | `alg_wc_products_per_page_select_class` | Each `<input>` for `%radio%`; the `<select>` for `%dropdown%` |
| Selector style | `alg_wc_products_per_page_select_style` | Same elements as Selector class, as inline CSS |
| Before HTML | `alg_wc_products_per_page_before_html` | Markup printed before the form |
| After HTML | `alg_wc_products_per_page_after_html` | Markup printed after the form |
| Radio glue | `alg_wc_products_per_page_radio_glue` | String placed between radio buttons (default is a single space) |

### Example templates

A compact dropdown label:

```
Show %dropdown% of %total% products
```

Radio buttons with a lead-in:

```
Products per page: %radio%
```

### Related articles

To switch the control to radio buttons, see the guide on showing the selector as radio buttons. For placing the selector, see the custom position guide.

### Get more control

All template controls are free. [Number of Products per Page - Pagination Manager for WooCommerce](https://wpfactory.com/item/products-per-page-woocommerce/) Pro adds an editable options list and a Products per Page widget. [See what Pro unlocks](https://wpfactory.com/item/products-per-page-woocommerce/).

Related articles

- [Products Per Page: Developer Hooks, Filters and Shortcodes Reference](https://wpfactory.com/docs/products-per-page-developer-hooks-filters/)
- [General Settings: Products per Page, Positions, Template and Select Options](https://wpfactory.com/docs/products-per-page/)
