• Resolved greatercreators

    (@greatercreators)


    Some parameters work some don’t. Only ones that show are Title, URL, Stats.
    But {thumb_img} is blank, {id} shows as “{id}” and {excerpt} is blank.

    The same exact code is working fine on my other WP site.
    What am I missing?
    Thanks for help

    here is code

    $args = array(
        'post_html' => '<li class="topNewsListItem"> <div class="thumbnailImage"><a  href="https://mysite.com/?id={id}" rel="bookmark" title="{text_title}">    <img src="{thumb_img}" /></a></div>   <div class="list_desc"><h4 class="list_title"><a class="post-title" href="https://mysite.com/?id={id}" rel="bookmark" title="{text_title}">{text_title}</a></h4><div class="excerpt">{summary}<br /></div> </div><!-- End of description--><div class="actionButtons"><a href="javascript:shareArticle({id});" class="shareArticle" id="shareArticle{id}"><i class="fa fa-share-alt  fa-lg"></i><span class="linktext">Share Article</span></a><a href="javascript:addToFavs({id});" class="addFavs" id="addFavs{id}"><i class="fa fa-heart  fa-lg"></i><span class="linktext">Add to Favorites</span></a><a href="javascript:saveOffline({id});" class="saveOffline" id="saveOffline{id}"><i class="fa fa-cloud-download   fa-lg"></i><span class="linktext">Save Offline</span></a><a href="javascript:readLater({id});" class="readLater" id="readLater{id}"><i class="fa fa-clock-o  fa-lg"></i><span class="linktext">Read Later</span></a></div><div class="clear"></div></li>',
        'cat' => 158,
        'limit' => 6,
        'range'=>'all',
    	'order_by'=>'views',
        'post_type' => 'post'
    );
    
    wpp_get_mostpopular( $args );

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

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

    (@hcabrera)

    Hi there!

    Please double check the documentation at the Parameters section (wp-admin > Settings > WordPress Popular Posts > Parameters):

    {thumb_img} (displays thumbnail image without linking to post/page, requires thumbnail_width & thumbnail_height)

    {summary} (displays post/page excerpt, and requires excerpt_length to be greater than 0)

    … and there’s no {id} content tag ??

    Plugin Author Hector Cabrera

    (@hcabrera)

    Since it’s been over a week since OP’s last response, I’m assuming he’s managed to fix the problem and so I’m marking this topic as resolved.

    @greatercreators if you’re still having issues with this, please leave a comment here and I’ll help out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some Parameters not working’ is closed to new replies.