• Resolved Paslatek

    (@paslatek)


    Hello
    I’m trying to integrate the hit count into my custom theme. the “short code” [hit_count] is not rendered.
    Is there any php function I can call to retrieve the hit count for a particular post ?

    something like this : <span><?php echo post_hit_counter(the_ID()) ?></span>

    https://ww.wp.xz.cn/plugins/post-hit-counter/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    It would be better if we could show each post count by the title or anywhere a php code calls the function for that.

    Plugin Author Hugh Lashbrooke

    (@hlashbrooke)

    Sorry Paslatek – I must have missed this post when it first added here!

    To use a shortcode in your theme you can simply do this:

    echo do_shortcode( '[hit_count]' );

    That’s all you need and you’ll have the hit count as a function 🙂

    Plugin Author Hugh Lashbrooke

    (@hlashbrooke)

    Sorry Paslatek – I must have missed this post when it first added here!

    To use a shortcode in your theme you can simply do this:

    echo do_shortcode( '[hit_count]' );

    That’s all you need and you’ll have the hit count as a function 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Integrate into theme’ is closed to new replies.