• I swear I’ve followed all instructions to a T. I used this reference: https://www.paddsolutions.com/wordpress-theme-magaling/

    But the thumbnail on each post is not coming up. Also, here is my index.php code where the magic should be happening:

    <?php
    			$customfields = get_post_custom();
    			$scrp = get_bloginfo('wpurl') . '/tt-scripts/timthumb.php?';
    			if (empty($customfields['paddimage'][0])) {
    				$imgpath = $scrp . 'src=' . get_bloginfo('wpurl') . '/wp-content/themes/magaling/images/thumbnail.png' . '&amp;w=83&amp;h=83&amp;zc=1';
    			} else {
    				$imgpath = $scrp . 'src=' . get_bloginfo('wpurl') .  $customfields['paddimage'][0] . '&amp;w=83&amp;h=83&amp;zc=1';
    			}
    		?>

    My site is johnmayermusic.net if you want to inspect it with firebug or something. I would really appreciate some help on this. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • I know the site has been going well now. But I had the same issue and was not able to find the solution over the internet. Finally, I got the solution and want to share if anybody is running into this same problem. The problem is this variable $customfields[‘paddimage’][0] is returning the path of image including the domain name and the function get_bloginfo(‘wpurl’) is returning the URL(domain) of the site. So the result will be something similar to this https://domainhttps://domain/pathtoimage/image.ext&w=83&h=83&zc=1. By using this URL the tt-scripts/timthumb.php is not able to resolve the URL to regenerate the thumbnail image. The solution is simply remove the get_bloginfo(‘wpurl’) from this line $imgpath = $scrp . ‘src=’ . get_bloginfo(‘wpurl’) . $customfields[‘paddimage’][0] . ‘&w=83&h=83&zc=1’;

    Don’t remove from the line after if condition.

    Cheers

    dude please explain your solution doesn’t work, I’m going crazy

    The concept makes sense, but no matter what I did with the get_bloginfo I couldn’t get it to work either… Do either of you two mind explaining what you did to solve the problem? This is the last thing before I can announce my site…

    The concept makes sense, but no matter what I did with the get_bloginfo I couldn’t get it to work either… Do either of you two mind explaining what you did to solve the problem? This is the last thing before I can announce my site… Pretty please?

    EDIT: sorry about the double post.

    same here. Any solution to make “paddimage” work?

    please advice.

    thanks much

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Magaling Theme Thumbnail Issue’ is closed to new replies.