Support » Plugin: Top 10 - Popular posts plugin for WordPress » Thumbnail question display category

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


    evdz, unfortunately, there isn’t a quick solution to either questions. Both would require big changes to the code.

    1. For this edit top-10.php to use get_the_category function to pull the category.
    Alternatively use the $categories variable that has been set.
    Lines 247-268 would be where you modify the code.

    2. Line 639 would be where you can edit this to amend the line:
    $postimage = get_post_meta($result->ID, $thumb_meta, true);

    to something like:

    $postimage = ''.get_post_meta($result->ID, $thumb_meta, true).'.jpg';

    Thanks Ajay,

    Too bad I had to go into the actual plugin to hardcode my changes.. I wont be able to update the plugin that easily anymore with future upgrades..

    However I did manage to get it working (about) the way I wanted using your suggestions!

    The result:

    Thanks again for your help!

    Plugin Author Ajay


    evdz, do you want to shoot the code across to me? Am at me AT ajaydsouza DOT com

    In the next version, I plan on creating a function that just returns the top posts in an array of post IDs.

    After that you can use this function to do whatever you want in your template. It’s a feature for power users who want to totally customise the display and are familiar with PHP and WordPress files.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Thumbnail question display category’ is closed to new replies.