Support » Plugin: Google Analytics Popular Posts » [Plugin: Google Analytics Popular Posts] How to add the post thumbnail?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author koichiyaima

    (@koichi-nakatsu)

    Hi,
    The current version can not display a thumbnail.
    I would like to support in future versions.
    Thank you.

    Hey,

    I did it myself. Here’s the code

    google-analytics-popular-posts:378

    $titleStr = get_the_title($getPostID);
          $post = get_post($getPostID);
          $thumb = "";
          if(function_exists("woo_get_image_html")) {
            $thumb = woo_get_image_html('image',48,48,'thumbnail',90,$post->ID,'img');
          }
          $dateStr = mysql2date('Y-m-d', $post->post_date);
          $contentStr = strip_tags(mb_substr($post->post_content, 0, 60));
          $output .= '<ul>'."\n";
          $output .= '<li>'."\n";
          $output .= '<div class="popular_post"><a href='.$postPagepath.'>'.$thumb.$titleStr.'</a><br />'."\n";

    You just need to use a more standard function than the woo_get_image_html I customized. 🙂

    But it works pretty well for me.
    http://i55.tinypic.com/ir575g.png

    Plugin Author koichiyaima

    (@koichi-nakatsu)

    Hi,
    Great!
    Good job!

    oxcafe, would you be willing to help me do the same thing (for a fee)?

    Sure Curtis! contact (@) bloguedegeek.net

    Just checking, did you get my email?

    Yup, replying at the moment.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Google Analytics Popular Posts] How to add the post thumbnail?’ is closed to new replies.