Black Friday: 79% off every plugin Shop the sale →

Shortcode

Product view counter shortcode#

[revnextwoopro_counter id="123"]
AttributeRequiredDescription
idNo on single product pages, yes elsewhereThe WooCommerce product ID whose 30-day view count to show. Without it, the current product is used on single product pages.

Output is the same <p class="revnextwoopro-visitor-counter"> line as the automatic counter. It prints nothing when the product has fewer than 5 views, when the Product view counter setting is off, or when the Pro license is inactive. The shortcode only displays the count; views are still counted only on real single product page loads.

Was this article helpful?