{"id":26413,"date":"2009-03-08T05:33:48","date_gmt":"2009-03-08T05:33:48","guid":{"rendered":"https:\/\/id.wordpress.org\/support\/2009\/03\/08\/nambah-timthumb\/"},"modified":"2009-03-08T05:33:48","modified_gmt":"2009-03-08T05:33:48","slug":"nambah-timthumb","status":"closed","type":"topic","link":"https:\/\/id.wordpress.org\/support\/topic\/nambah-timthumb\/","title":{"rendered":"nambah timthumb"},"content":{"rendered":"<p>aku mencoba menambahkan fungsi timthumb pada template.<br \/>\nakum ngambil kode seperti berikut<br \/>\n ` &lt;?php \/\/ This will show the image and link the image to the post. Alter the width and height (in both places) to your needs. ?&gt;<\/p>\n<p>        &lt;?php if ( get_post_meta($post-&gt;ID, &#8216;thumb&#8217;, true) ) { ?&gt;<br \/>\n\t&lt;div class=&#8221;postthumb&#8221;&gt;<br \/>\n\t\t<a>&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &lt;?php the_title(); ?&gt;&#8221;&gt;&lt;img src=&#8221;&lt;?php bloginfo(&#8216;template_directory&#8217;); ?&gt;\/scripts\/timthumb.php?src=&lt;?php echo get_post_meta($post-&gt;ID, &#8220;thumb&#8221;, $single = true); ?&gt;&#38;h=150&#38;w=150&#38;zc=1&#8243; alt=&#8221;&lt;?php the_title(); ?&gt;&#8221; width=&#8221;150&#8243; height=&#8221;150&#8243; \/&gt;<\/a><br \/>\n\t&lt;\/div&gt;<br \/>\n&lt;?php } ?&gt;`<br \/>\nmasalahnya dengan pemakaian kode tersebut, tumbnail hanya akan muncul bila kita memasukan kata kunci &#8220;thumb&#8221; pada Custom Fields.<br \/>\nyang aku mau bila kita tidak memasukan kata kunci tersebut ada gambar default yang akan muncul sebagai ganti. kode apa ya yang harus aku tambahkan??<\/p>\n<p>makasih bantuannya&#8230;.<\/p>\n","protected":false},"template":"","class_list":["post-26413","topic","type-topic","status-closed","hentry","topic-tag-template","topic-tag-thema"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/id.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/26413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/id.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/id.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/id.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/26413\/revisions"}],"wp:attachment":[{"href":"https:\/\/id.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=26413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}