Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    If you’re using a plugin to add this functionality in the desktop theme, it should automatically work in WPtouch as well. Let us know how you’re implementing it in the desktop theme (if you are) and we’ll have a better idea of what you’re trying to accomplish.

    Regards,

    WPtouch Support

    Thread Starter Maurizio Zani

    (@mauriziozani)

    Thx for the answer.

    In the desktop theme the counter (and category, and tag) is not in the body field, but in the byline field (after the headline) and in the footer field of the post.

    I’ve seen that in your mobile theme -> settings, there’s the possibility to show the category (done), the tag (done) and the date (done) of the post, but not the counter…

    Hi,

    Thank you for the info, but how is the visitor counter added in the desktop theme? Are you using another plugin? Is it functionality that comes with the desktop theme?

    Regards,

    WPtouch Support

    Thread Starter Maurizio Zani

    (@mauriziozani)

    Yes, the plugin is WP PostViews, and the counter is added by means of the theme (Atahualpa) setting writing %wp-postviews% in the byline field.

    Mairizio,

    Thank you for the info. That makes sense. In order for the post views to show up, the code below needs to added.

    <?php if(function_exists(‘the_views’)) { the_views(); } ?>

    This is possible in WPtouch Pro, and can be done with its child theme feature. In WPtouch (free), you can do it but your changes will be overwritten each time you update the plugin.

    You can add the code to WPtouch’s single.php file in the location you’d like to display the post views in.

    Regards,

    WPtouch Support

    Thread Starter Maurizio Zani

    (@mauriziozani)

    Great!

    I’ve implemented your suggestion (and written a post: https://www.mauriziozani.it/wp/?p=3746, in case the solution should be useful to someone)

    Great. Thanks!

    WPtouch Support

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Insert counter in each post’ is closed to new replies.