[hits] short code not working on blog or page section…

  • Richard
    Richard
    Newbie
     
    51 points

    Hey Guys,

    Wanted to double check if maybe I’m doing something wrong or if it’s not part of the theme…

    Basically, I want to add a view counter to my blog pages and eventually my pages… it’s already on my product listings pages but, not the others…

    I attempted to add the shortcode [hits] in the content-single-post.php and the content-post.php… but, it just reads through like regular text also tried though following… <?php echo do_shortcode(‘[hits]’); ?></span>

    Any insight would be greatly appreciated…

    Thanks,

    R


    Josh
    Josh
    Super Guru
     
    13,887 points

    Hello Richard,
    The shortcode only works for listings.You can use a plugin to display post view count.Try this >>https://wordpress.org/plugins/wp-postviews/


    Richard
    Richard
    Newbie
     
    51 points

    Hey Josh,

    Thanks for the info… is there another plugin that works the one you recommended is not currently available on WP… it states as follows:

    “This plugin is not allowed on our system do to performance, security, or compatibility concerns. Please contact support with any questions…”

    Thanks,

    R


    Josh
    Josh
    Super Guru
     
    13,887 points

    Hello Richard,
    The plugin is available and downloadable.I have attached it for you

    Attachments:
    You must be logged in to view attached files.
    This reply was awarded the best answer by the topic poster.

    Richard
    Richard
    Newbie
     
    51 points

    Thanks Josh…

    I also found a plugin called Simple Post Views Counter… which seems to work as well as an alternative…

    Thanks,

    R


    Josh
    Josh
    Super Guru
     
    13,887 points

    Thanks for sharing Richard


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.