Home ยป Ask (Forum) ยป How to Add Views instead of Date in Bikin Theme

Question

Hi, admin!
I want to add views instead of the date in bikin theme, I attached an image, how I want to modify?
Views are the number of viewers for each separate film.

Jul 22, 2017 (6 months ago) - Posted by 8 Comments

8 Answers

  1. Mr. Shine says:

    Hello Nasha, Try using WP-PostViews. I never using that plugin before, but i think WP-PostViews will work fine.

    Please follow this tutorial:
    1. Download and install that plugin: https://wordpress.org/plugins/wp-postviews/
    2. After activate, open index.php file inside your Wp theme folder.
    3. Find this line:

    <!--<date>-->
    <div class="bw_date">
    	<?php the_time('M j, Y') ?>
    </div>
    <!--</date>-->

    Change become:

    <!--<date>-->
    <div class="bw_date">
    	<?php if(function_exists('the_views')) { the_views(); } ?>
    </div>
    <!--</date>-->

    4. Done.

    Screenshot:
    Page view WordPress

    Good luck!

    Administrator
  2. nasha7861122 says:

    it is Working ๐Ÿ™‚

    Register Member
  3. nasha7861122 says:

    When I update my film then my views of that movie become Zero.
    But Why It become Zero, I want to remain same.

    Register Member
  4. mada says:

    I done every step, and now there is on every movie 0 views, no matter how many time you open any movie. What can be problem?

    Register Member
  5. mada says:

    And in single post there is still date under the video player, how can be removed from there? And how to remove “comment are closed”?
    THANK YOU VERY MUCH ADMIN ๐Ÿ™‚

    Register Member
  6. mada says:

    screenshoot

    Register Member

Your Answer

Your email address will not be published. Required fields are marked *