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

WordPress Business Themes Forums Responsive Themes Comparison Theme [hits] short code not working on blog or page section…

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

June 21, 2017
Richard Richard
  • 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

    June 21, 2017 at 6:01 am
  • 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/

    June 21, 2017 at 12:18 pm
  • 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

    June 21, 2017 at 6:14 pm
  • 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.
    June 22, 2017 at 1:11 pm
    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

    June 23, 2017 at 2:23 am
  • Josh
    Josh
    Super Guru 13,887 points

    Thanks for sharing Richard

    June 23, 2017 at 12:17 pm
Viewing 6 posts - 1 through 6 (of 6 total)

Didn't find what you were after?

Chat with us now

or contact our support team