WordPress.org

Ready to get started?Download WordPress

Forums

Post Views Count
[resolved] How to use this plugin without having to put shortcode in every post? (5 posts)

  1. damian5000
    Member
    Posted 1 year ago #

    so,i have something like this in single.php:

    <h2><?php the_title(); ?></h2>
    <div class="post-meta">
    <span class="info">
    <span class="date"><?php the_time('M. d') ?></span>
    <span class="category"><?php the_category(', ' ); ?></span>
    <span class="comments"><?php comments_popup_link( __('add comment', 'gazpo'), __( '1 comment', 'gazpo'), __('% comments', 'gazpo')); ?></span>
    </span>
    </div> <!-- /post-meta -->

    WHERE, and WHAT code do i put, so it will automatically show the post view count...?

    Thanks!

    http://wordpress.org/extend/plugins/baw-post-views-count/

  2. Julio Potier
    Member
    Plugin Author

    Posted 1 year ago #

  3. damian5000
    Member
    Posted 1 year ago #

    haha... Ok.. no, i wasn't kidding you, but thanks for your time.... i suppose i wasn't clear... i wanted to show it after the post title, or directly above the post comment...

    <?php echo do_shortcode('[post_view]'); ?>

    works awesome.. thanks for your hard work on this plugin.

  4. damian5000
    Member
    Posted 1 year ago #

    BTW, <?php echo do_shortcode('[post_view]'); ?> was what i was looking for. no further need to explain regarding location... cheers.

  5. Julio Potier
    Member
    Plugin Author

    Posted 1 year ago #

    Plugin FAQ
    How to use/display it?
    6. echo do_shortcode...

    resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.