Osclass Support Forums
Osclass theme support => Sigma Osclass Theme => Topic started by: David Beaudoin on March 25, 2021, 02:12:26 PM
-
It seems to me that there is a variable to do but I don't know which one. Can you direct me to show the number of views
-
@David
<?php echo osc_item_views(); ?>
https://docs.osclasspoint.com/hitems-php
-
Thanks, but what should I change?
-
no rather where should I put this line?
-
@David
Anywhere you need it.
-
This only shows me the number that should I add so that it adds a sentence please ?
-
@David
Hello world <?php echo osc_item_views(); ?> views
<?php echo 'Hello world ' . osc_item_views() . ' views'; ?>
<?php echo sprintf(__('Hello world %d views', 'theme_name'), osc_item_views()); ?>
-
@MB Theme
Thanks it works wonderfully !!!