• Resolved zeshark

    (@zeshark)


    Hi,
    I just upgraded from 2.3.2 to 4.0.13 (yes i know …) and the wpp_get_mostpopular call returned post views count and post title by default.
    Getting rid of stats was easy but i am stuck with the post title link. I tried a title_length of zero, but without success.

    wpp_get_mostpopular(“range=weekly&order_by=views&limit=8&post_type=post&thumbnail_width=200&thumbnail_height=100&stats_comments=0&stats_views=0&title_length=0&do_pattern=1&pattern_form='{image}'”);

    Any suggestion ?
    Thanks !

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

    (@hcabrera)

    Hey there,

    I just upgraded from 2.3.2 to 4.0.13 (yes i know …)

    Holy crap! How were you able to stay on that version for so long!?

    Getting rid of stats was easy but i am stuck with the post title link.

    Your code is a little bit outdated. Try this instead:

    <?php
    
    if ( function_exists('wpp_get_mostpopular') ) {
    
        $args = array(
            'range' => 'weekly',
            'order_by' => 'views',
            'limit' => 8,
            'post_type' => 'post',
            'thumbnail_width' => 200,
            'thumbnail_height' => 100,
            'post_html' => '{thumb}'
        );
    
        wpp_get_mostpopular( $args );
    
    }
    
    ?>
    Thread Starter zeshark

    (@zeshark)

    Super, that did the trick, thank you for the prompt reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove title, thumbnails only’ is closed to new replies.