I am following this tutorial — "Display Your Popular Posts In WordPress Without A Plugin" and want to limit the max number of characters in the title that are displayed. Also, why is the thumbnail, at times, smaller than the number I define in the php?
first add this function to your functions.php file
then before the loop of the code you linked add this line to hook the above function:
and after the loop remove this filter:
and just change