<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>WordPress Functions - Latest Comments</title><link>http://wpfunc.disqus.com/</link><description></description><atom:link href="https://wpfunc.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 24 Aug 2013 13:01:20 -0000</lastBuildDate><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-1016157404</link><description>&lt;p&gt;Thanks a lot, works like a charm :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Elshereef</dc:creator><pubDate>Sat, 24 Aug 2013 13:01:20 -0000</pubDate></item><item><title>Re: Displaying Author Info</title><link>http://wpfunc.com/wordpress/displaying-author-info.html#comment-693724762</link><description>&lt;p&gt;Serkan you should add this line instead of your gravatar functions line. Because regular usage dont have any img alt tag. That mean is not valid for w3 rules.&lt;/p&gt;&lt;p&gt;echo get_avatar( get_the_author_meta('ID'), 32, '', 'img alt tag here.' );&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Fatih Toprak</dc:creator><pubDate>Sat, 27 Oct 2012 03:31:31 -0000</pubDate></item><item><title>Re: Adding Google+ Metas and Twitter Cards</title><link>http://wpfunc.com/wordpress/adding-google-metas-and-twitter-cards.html#comment-693723825</link><description>&lt;p&gt;What a great tips. Thanks wpFunc.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Fatih Toprak</dc:creator><pubDate>Sat, 27 Oct 2012 03:26:56 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-687868668</link><description>&lt;p&gt;i will e-mail about this &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serkan Algur</dc:creator><pubDate>Sat, 20 Oct 2012 12:10:20 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-687858317</link><description>&lt;p&gt;If I apply the code (for example:  ) works perfectly, buy always with a square form. My intention is something like 300x200px.&lt;/p&gt;&lt;p&gt;These days I've been trying to use your code but I don't know why doesn't work...&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leo</dc:creator><pubDate>Sat, 20 Oct 2012 11:38:12 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-686954781</link><description>&lt;p&gt; The reference is here : &lt;a href="http://codex.wordpress.org/Function_Reference/the_post_thumbnail" rel="nofollow noopener" target="_blank" title="http://codex.wordpress.org/Function_Reference/the_post_thumbnail"&gt;http://codex.wordpress.org/...&lt;/a&gt; &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serkan Algur</dc:creator><pubDate>Fri, 19 Oct 2012 06:22:53 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-686147025</link><description>&lt;p&gt;I'm sorry but It doesn't work. I'm using  the_excerpt() and I tried to put this code before (changing --&amp;gt; &amp;amp;h=100&amp;amp;w=120&amp;amp;).&lt;/p&gt;&lt;p&gt;Also have timthumb.php in my theme folder. The result is a link to the post with this form:&lt;/p&gt;&lt;p&gt;NAME OF THE POST&amp;amp;h=40w=120&amp;amp;zc=1" alt="NAME OF THE FEATURED IMAGE" /&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leo</dc:creator><pubDate>Thu, 18 Oct 2012 10:05:13 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-682442689</link><description>&lt;p&gt;Leo, &lt;br&gt;Try this before the_content();&lt;/p&gt;&lt;p&gt;Here is the code: &lt;a href="http://pastebin.com/20fDw3fm" rel="nofollow noopener" target="_blank" title="http://pastebin.com/20fDw3fm"&gt;http://pastebin.com/20fDw3fm&lt;/a&gt; (disqus gives me cancer when i post code)&lt;/p&gt;&lt;p&gt;Change h=, w= and place timthumb.php under the your theme's folder.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serkan Algur</dc:creator><pubDate>Mon, 15 Oct 2012 03:37:47 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-679823097</link><description>&lt;p&gt;Thanks Serkan! I want to use it for my pesonalized categories (modifying my 'category-ID.php'). By the moment Y made a code for the moment, as I told you this post is great but I need my Featured Images as reference. It works, but I can't resize like usign Timthumb:&lt;/p&gt;&lt;p&gt;function sa_get_image($postid=0, $size='thumbnail') { //it can be thumbnail or full&lt;br&gt;    if ($postid&amp;lt;1)&lt;br&gt;    $postid = get_the_ID();&lt;br&gt;    $thumb = get_post_meta($postid, "thumb", TRUE); // Declare the custom field for the image&lt;br&gt;   if ($thumb != '') {&lt;br&gt;        echo $thumb; &lt;br&gt;}&lt;br&gt;    elseif (has_post_thumbnail()) {&lt;br&gt;echo '&lt;a href="'.get_permalink().'" rel="nofollow noopener" target="_blank" title="'.get_permalink().'"&gt;';&lt;br&gt;echo get_the_post_thumbnail($post-&amp;gt;ID, array(140,140), array('class' =&amp;gt; $clase_img) );&lt;br&gt;echo '&lt;/a&gt;';&lt;br&gt;}&lt;br&gt;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leo</dc:creator><pubDate>Fri, 12 Oct 2012 10:30:13 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-679410045</link><description>&lt;p&gt;Idea sounds good. I Will think on this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serkan Algur</dc:creator><pubDate>Thu, 11 Oct 2012 20:24:36 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-679343004</link><description>&lt;p&gt;Hi Serkan! The code is perfect, but I want something specific: catch my FEATURED IMAGE  and use them for thumbnail (instead of the first image like you explain here).&lt;/p&gt;&lt;p&gt;As I told you, everything is allright and I also tried with Timthumb; but it would be great if you could help me with this! Thank you! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leo</dc:creator><pubDate>Thu, 11 Oct 2012 18:13:51 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-574028802</link><description>&lt;p&gt;Code edited. Script fully working&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serkan Algur</dc:creator><pubDate>Mon, 02 Jul 2012 03:02:46 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-547674831</link><description>&lt;p&gt;Jope sorry about late comment but i could not find any solution yet&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serkan Algur</dc:creator><pubDate>Tue, 05 Jun 2012 05:59:47 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-541873911</link><description>&lt;p&gt; Hi Serkan, have you find any solution for the empty spaces?&lt;/p&gt;&lt;p&gt;Because  of that Timthumb doesn't work.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jope00</dc:creator><pubDate>Wed, 30 May 2012 10:05:03 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-518622905</link><description>&lt;p&gt;Ali,&lt;/p&gt;&lt;p&gt;Go to your dashboard, Settings-&amp;gt;Media, set the Thumbnail Size to 100x100 (default 150x150). And use Regenerate Thumbnail Plugin :)) You can use 100x100 thumbnails after that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serkan Algur</dc:creator><pubDate>Fri, 04 May 2012 03:53:44 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-517890186</link><description>&lt;p&gt;@Serkan Algur  This is awesome thank you so much now I have that image display in the right order. Only left to find about the image dimension 100x100&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ali Wadi</dc:creator><pubDate>Thu, 03 May 2012 14:15:28 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-517744242</link><description>&lt;p&gt;Ali,&lt;/p&gt;&lt;p&gt;I think we have a simple soluton :) Can you add this in the array area;&lt;br&gt;&lt;/p&gt;&lt;pre&gt;'orderby' =&amp;gt; 'menu_order',&lt;br&gt;'order' =&amp;gt; 'ASC', //If reverse use DESC&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Also i don't know any solution about space problem in the link. If i find the solution i will inform you :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serkan Algur</dc:creator><pubDate>Thu, 03 May 2012 12:01:56 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-517724972</link><description>&lt;p&gt;Thanks for your quick response,&lt;/p&gt;&lt;p&gt;The problem is that the first image it grab it was the first from the array, but your previous function was the first image from the post content.&lt;/p&gt;&lt;p&gt;So when I change numberposts =&amp;gt; '-1' I can see list of URL image with lots of space delimiter and the problem is that the first image store as last.&lt;/p&gt;&lt;p&gt;And I cant just simply change the index from $thumbnail[0] to any other number it will just give me wrong output like &lt;a href="http://mydain.com" rel="nofollow noopener" target="_blank" title="http://mydain.com"&gt;http://mydain.com&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ali Wadi</dc:creator><pubDate>Thu, 03 May 2012 11:40:35 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-517716651</link><description>&lt;p&gt;Hello Ali,&lt;/p&gt;&lt;p&gt;Thanks for your reply. &lt;br&gt;First Solution. You can use Renegerate Thumbnail Plugin for wordpress. Set the thumbnail size from WordPress Dashboard Media Settings and use this plugin. You can download from &lt;a href="http://wordpress.org" rel="nofollow noopener" target="_blank" title="wordpress.org"&gt;wordpress.org&lt;/a&gt; &lt;a href="http://wordpress.org/extend/plugins/regenerate-thumbnails/" rel="nofollow noopener" target="_blank" title="http://wordpress.org/extend/plugins/regenerate-thumbnails/"&gt;http://wordpress.org/extend...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;And second solution :) &lt;br&gt;Look code :) You can see &lt;/p&gt;&lt;pre&gt;echo $thumbnail[0];&lt;/pre&gt;&lt;p&gt; :))&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serkan Algur</dc:creator><pubDate>Thu, 03 May 2012 11:31:13 -0000</pubDate></item><item><title>Re: Catch the First Image (Upgraded)</title><link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comment-517587182</link><description>&lt;p&gt;Thanks this code works perfectly!&lt;/p&gt;&lt;p&gt;I have two question.&lt;br&gt;Where can I resize the generated thumbnail? &lt;/p&gt;&lt;p&gt;And How to make it grab the first image like your previous function you had?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ali Wadi</dc:creator><pubDate>Thu, 03 May 2012 08:50:20 -0000</pubDate></item></channel></rss>