• Resolved realbader

    (@realbader)


    Hello!

    how can I display the views number in this code:
    function render() {
    $buffy = ”;
    $buffy .= ‘<div class=”item_small T_post”>’;
    $buffy .= $this->get_image(‘thumbnail’);
    $buffy .= ‘<div class=”item-details”>’;
    $buffy .= $this->get_title();
    $buffy .= ‘<div class=”post_meta”>’;
    $buffy .= $this->get_date_o();
    $buffy .= ‘</div>’;
    $buffy .= ‘</div>’;
    $buffy .= ‘</div>’;
    return $buffy;
    }

    https://wordpress.org/plugins/wp-postviews/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lester Chan

    (@gamerz)

    function render() {
    $buffy = '';
    $buffy .= '<div class="item_small T_post">';
    $buffy .= $this->get_image('thumbnail');
    $buffy .= '<div class="item-details">';
    $buffy .= $this->get_title();
    $buffy .= '<div class="post_meta">';
    $buffy .= $this->get_date_o();
    $buffy .= '</div>';
    $buffy .= '<div class="post_meta">';
    $buffy .= the_views( false );
    $buffy .= '</div>';
    $buffy .= '</div>';
    $buffy .= '</div>';
    return $buffy;
    }

    Just an example, if it does not appear where you want, contact your theme author as that has nothing to do with the plugin.

    Thread Starter realbader

    (@realbader)

    yeah! it works! thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘problem with displaying the views’ is closed to new replies.