View Categories

Template Placeholders and Styling Reference

The Number of Products per Page – Pagination Manager for 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

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%

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 Pro adds an editable options list and a Products per Page widget. See what Pro unlocks.