• Arthy1

    (@arthy1)


    Hi,

    Thank you for this theme it is working great !

    I would like to know how to add the number of views of a post in the post-info and the post-meta ?

    Thanks for your help,

    Arthy

Viewing 6 replies - 1 through 6 (of 6 total)
  • stephencottontail

    (@stephencottontail)

    I’d suggest trying one of these plugins.

    Thread Starter Arthy1

    (@arthy1)

    Thanks but i tried and it always keeps on saying 0 views… and i can’t get it to appear in posts…

    stephencottontail

    (@stephencottontail)

    Which plugin did you try? Did you try contacting the plugin’s author for assistance?

    Thread Starter Arthy1

    (@arthy1)

    I tried the jetpack post views, WP-post views and others i don’t even remember,
    for WP-postviews for example i can’t find “<?php while (have_posts()) : the_post(); ?>”
    in the template files… ( and when i added this code in the meta of the post it only displayed 0 views)
    and when i looked through the plugins’ support they usually said to ask in the support of the theme so i arrived here…

    Theme Author vpthemes

    (@vpthemes)

    For WP PostViews Plugin you need to put the following code into content-single.php template: if(function_exists('the_views')) { the_views(); } try to place the code directly after the_content();

    Thread Starter Arthy1

    (@arthy1)

    Thanks i put it where you said and it displays the views but it stays at 0… I also managed to put it in the post-info and post-meta but it still says 0… i am gonna try to check on the plugin page…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Number of views in post-info and -meta’ is closed to new replies.