• Resolved Dinh??

    (@dinhcode)


    Hello

    i have add code in loop post

    <?php wpp_get_mostpopular( 'stats_views=1' ); ?>

    and i have code

    <ul class="wpp-list">
    <li> <a href="###" title="Gods of Egypt" class="wpp-post-title" target="_self">Gods of Egypt</a> <span class="wpp-views">1 view</span></li>
    
    </ul>

    How to customize : i want echo easy code as
    <span class="wpp-views">1 view</span>

    Do you know is it possible ?
    Thank you for your help !

    https://www.ads-software.com/plugins/wordpress-popular-posts/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    I’m not sure I understood what you want to do achieve. Could you please elaborate a bit more? What are you trying to do?

    Thread Starter Dinh??

    (@dinhcode)

    hi,

    My problem that:

    My index i have show list post by category code:

    <?php if ( is_category(12) ) { ?>
    <?php if (have_posts()) { while (have_posts()) { the_post(); ?>
    <h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    <?php wpp_get_mostpopular( 'stats_views=1' ); ?>
    <?php }} wp_reset_query(); ?>
    <?php } ?>

    I have been in view-source:

    <ul class="wpp-list">
    <li> <a href="https://mypost_title" title="mypost_title" class="wpp-post-title" target="_self">mypost_title</a> <span class="wpp-views">183 views</span></li>
    
    </ul>

    How to customize I just want:
    <span class="wpp-views">183 views</span>

    Thanks

    Thread Starter Dinh??

    (@dinhcode)

    Resolved topic

    i had user:

    <?php
    				if (function_exists('wpp_get_views'))
    					echo '<i class="fa fa-eye"></i> '.wpp_get_views( get_the_ID() ) .' views';
    			?>

    Thanks for Plugins.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customize wpp_get_mostpopular( 'stats_views=1' )’ is closed to new replies.