<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Narga &#187; wordpress recipes</title>
	<atom:link href="http://www.narga.net/tag/wordpress-recipes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.narga.net</link>
	<description>Narga - Ideas and inspiration in my opinion!</description>
	<lastBuildDate>Wed, 18 Jan 2012 20:20:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<atom:link rel='hub' href='http://www.narga.net/?pushpress=hub'/>
		<item>
		<title>How to Highlight Author Comments in WordPress using CSS</title>
		<link>http://www.narga.net/how-to-highlight-author-comments-in-wordpress-using-css/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-highlight-author-comments-in-wordpress-using-css</link>
		<comments>http://www.narga.net/how-to-highlight-author-comments-in-wordpress-using-css/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 13:30:38 +0000</pubDate>
		<dc:creator>Narga</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress recipes]]></category>

		<guid isPermaLink="false">http://www.narga.net/?p=2096</guid>
		<description><![CDATA[Many blogs highlight the author’s comment in the comments section. I’m talking about how to highlight comments posted by the author of the article. You can use many plugins to get this effect (For eg., the Highlight Author Comments Plugin) – but you don’t have to. Most snippets will target and try to find author’s email or user id, but that  actually slows your site down. Why not using CSS selector and find author’s comment and change the  background color so it is easily pointed out. Pretty smart. After that, it was a simple matter of times to see the result.]]></description>
			<content:encoded><![CDATA[<p>Many blogs highlight the author’s comment in the comments section. I’m talking about how to highlight comments posted by the author of the  article. You  can use many plugins to get this effect (For eg., the <a rel="nofollow" href="http://wordpress.org/extend/plugins/highlight-author-comments/"  title="Highlight Author  Comments">Highlight Author  Comments</a> Plugin) – but you don’t have to. You can get the get the  same effect by adding a small bit of CSS code to your theme.<br />
<div id="attachment_2099" class="wp-caption aligncenter" style="width: 530px"><a href="http://www.narga.net/wp-content/uploads/2010/03/Highlighting-Author-Comments.png" ><img src="http://www.narga.net/wp-content/uploads/2010/03/Highlighting-Author-Comments.png" alt="Highlighting Author Comments in WordPress" width="520" height="320" class="size-full wp-image-2099" /></a><p class="wp-caption-text">Highlighting Author Comments in WordPress</p></div><br />
Most snippets will target and try to find author’s email or user id, but that  actually slows your site down. Why not using CSS selector and find author’s comment and change the  background color so it is easily pointed out. Pretty smart. After that, it was a simple matter of times to see the result.<br />
<span id="more-2096"></span><strong>My default comments loop in <span class="highlight">comments.php</span></strong></p>
<pre class="brush: php; title: ; notranslate">&lt;?php wp_list_comments('type=comment&amp;avatar_size=48'); ?&gt;</pre>
<p><strong>View the HTML code:</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;li class=&quot;comment byuser comment-author-Narga bypostauthor even thread-even depth-1&quot; id=&quot;comment-1013&quot;&gt;
				&lt;div id=&quot;div-comment-1013&quot; class=&quot;comment-body&quot;&gt;
				&lt;div class=&quot;comment-author vcard&quot;&gt;
		&lt;img alt='' src='http://www.gravatar.com/avatar/18d31a42990f0421bf83bf9c72bcd1b5?s=48&amp;amp;d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D48&amp;amp;r=G' class='avatar avatar-48 photo' height='48' width='48' /&gt;		&lt;cite class=&quot;fn&quot;&gt;&lt;a href='http://www.narga.net' rel='external nofollow' class='url'&gt;Narga&lt;/a&gt;&lt;/cite&gt; &lt;span class=&quot;says&quot;&gt;says:&lt;/span&gt;		&lt;/div&gt;

		&lt;div class=&quot;comment-meta commentmetadata&quot;&gt;&lt;a href=&quot;http://www.narga.net/subscribe-then-get-1-month-free-rapidshare-premium-account/comment-page-1/#comment-1013&quot;&gt;October 16, 2009 at 20:35&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a class=&quot;comment-edit-link&quot; href=&quot;http://www.narga.net/wordpress/wp-admin/comment.php?action=editcomment&amp;amp;c=1013&quot; title=&quot;Edit comment&quot;&gt;(Edit)&lt;/a&gt;&lt;/div&gt;

		&lt;p&gt;I&#8217;ve saw 5 people who commented on this post. I&#8217;ll take random with they only.&lt;br /&gt;
Those who Subscribed, write comments in here to get 1 Month FREE RapidShare Premium Account&lt;/p&gt;

		&lt;div class=&quot;reply&quot;&gt;
				&lt;/div&gt;

				&lt;/div&gt;
		&lt;/li&gt;
</pre>
<p><strong>Open the “style.css” and near the bottom added these lines:</strong></p>
<pre class="brush: css; title: ; notranslate">.authcomment {
       background-color: #B3FFCC !important;
}</pre>
<p>And, that’s it! We hope that you find it useful!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.narga.net/how-to-highlight-author-comments-in-wordpress-using-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>45+ Most Popular Social Bookmarking Link Codes for WordPress</title>
		<link>http://www.narga.net/45-most-popular-social-bookmarking-link-codes-for-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=45-most-popular-social-bookmarking-link-codes-for-wordpress</link>
		<comments>http://www.narga.net/45-most-popular-social-bookmarking-link-codes-for-wordpress/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 13:30:53 +0000</pubDate>
		<dc:creator>Narga</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[social networks]]></category>
		<category><![CDATA[wordpress recipes]]></category>

		<guid isPermaLink="false">http://www.narga.net/?p=2038</guid>
		<description><![CDATA[ With Social Bookmark websites, users can save and categorize a personal collection of bookmarks and share them with others. Your visitors can now bookmark and submit your websites to all their favorite social bookmark services with the ease of a single click.
So how can we encourage more people to share our links? One of the easiest options is to include a set of links at the bottom of your posts which readers can click to automatically vote for your article. In this post, I’ve written the WordPress codes for 45+ of the most popular social bookmarking and networking sites out there.]]></description>
			<content:encoded><![CDATA[<p>Social bookmarking is a method for Internet  users to share, organize, search, and manage bookmarks of web resources. Unlike file sharing, the resources themselves aren't shared, merely bookmarks that reference them. With Social Bookmark websites, users can save and categorize a personal collection of bookmarks and share them with others. Your visitors can now bookmark and submit your websites to all their favorite social bookmark services with the ease of a single click.<br />
So how can we encourage more people to share our links? One of the easiest options is to include a set of links at the bottom of your posts which readers can click to automatically vote for your article.<br />
<div id="attachment_2039" class="wp-caption aligncenter" style="width: 530px"><a href="http://www.narga.net/wp-content/uploads/2010/03/Social-Media-Process-v1.0.jpg" ><img src="http://www.narga.net/wordpress/wp-content/uploads/2010/03/Social-Media-Process-v1.0-520x401.jpg" alt="Social Media Process v1.0" width="520" height="401" class="size-medium wp-image-2039" /></a><p class="wp-caption-text">Social Media Process v1.0</p></div><br />
In this post, I’ve written the WordPress codes for 45+ of the most popular <a href="http://www.narga.net/snipplr-must-have-source-code-repository-for-programmers/" >social bookmarking</a> and networking sites out there.<br />
<span id="more-2038"></span>
<ol>
<li>
<h3>Bibsonomy</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.bibsonomy.org/ShowBookmarkEntry?
c=b&amp;jump=yes&amp;url=&lt;?php the_permalink(); ?&gt;&amp;description=&lt;?php the_excerpt(); ?&gt;</pre>
</li>
<li>
<h3>Blogmarks</h3>
<pre class="brush: php; html-script: true; title: ; notranslate"> http://blogmarks.net/my/new.php? title=&lt;?php the_title(); ?&gt;&amp;url=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Blinklist</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=&lt;?php the_permalink(); ?&gt;&amp;Title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Delicious</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://delicious.com/post?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;notes=&lt;?php the_excerpt(); ?&gt;</pre>
</li>
<li>
<h3>Design Bump</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.designbump.com/submit?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Design Float</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.designfloat.com/submit.php?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Design Moo</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.designmoo.com/submit?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Digg</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://digg.com/submit?phase=2&amp;url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;bodytext=&lt;?php the_excerpt(); ?&gt;</pre>
</li>
<li>
<h3>Diigo</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.diigo.com/post?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Dzone</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.dzone.com/links/add.html?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Facebook</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.facebook.com/share.php?u=&lt;?php the_permalink(); ?&gt;&amp;t=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Fark</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://cgi.fark.com/cgi/fark/farkit.pl?h=&lt;?php the_title(); ?&gt;&amp;u=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Friendfeed</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.friendfeed.com/share?title=&lt;?php the_title(); ?&gt;&amp;link=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Folkd</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.folkd.com/submit/&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Google Bookmarks</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;annotation=&lt;?php the_excerpt(); ?&gt;</pre>
</li>
<li>
<h3>Hacker News</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://news.ycombinator.com/submitlink?u=&lt;?php the_permalink(); ?&gt;&amp;t=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>HaoHao</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.haohaoreport.com/submit.php?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Identi.ca</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://identi.ca/notice/new?status_textarea=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>IndianPad</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.indianpad.com/submit.php?url=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Linked In</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.linkedin.com/shareArticle?mini=true&amp;url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;summary=&lt;?php the_excerpt(); ?&gt;</pre>
</li>
<li>
<h3>Live Favorites</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Mister Wong</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.mister-wong.com/addurl/?bm_url=&lt;?php the_permalink(); ?&gt;&amp;bm_description=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Mixx</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.mixx.com/submit?page_url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>MySpace</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.myspace.com/Modules/PostTo/Pages/?u=&lt;?php the_permalink(); ?&gt;&amp;t=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Netvibes</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.netvibes.com/share?title=&lt;?php the_title(); ?&gt;&amp;url=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Newsvine</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.newsvine.com/_tools/seed&amp;save?u=&lt;?php the_permalink(); ?&gt;&amp;h=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Ping.fm</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://ping.fm/ref/?link=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;body=&lt;?php the_excerpt(); ?&gt;</pre>
</li>
<li>
<h3>Posterous</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://posterous.com/share?linkto=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;selection=&lt;?php the_excerpt(); ?&gt;</pre>
</li>
<li>
<h3>Propeller</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.propeller.com/submit/?url=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Reddit</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://reddit.com/submit?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Scoopeo</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.scoopeo.com/scoop/new?newurl=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Simpy</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://simpy.com/simpy/LinkAdd.do? title=&lt;?php the_title(); ?&gt;&amp;href=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Slashdot</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://slashdot.org/bookmark.pl?title=&lt;?php the_title(); ?&gt;&amp;url=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>SocialNews</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.socialnews.biz/submit?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt; ?&gt;</pre>
</li>
<li>
<h3>Sphere</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.sphere.com/search?q=sphereit:&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Sphinn</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Spurl</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.spurl.net/spurl.php? url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Squidoo</h3>
<pre class="brush: php; html-script: true; title: ; notranslate"> http://www.squidoo.com/lensmaster/bookmark?&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>StumbleUpon</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.stumbleupon.com/submit?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Technorati</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://technorati.com/faves?add=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Tipd</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://tipd.com/submit.php?url=&lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Tumblr</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://www.tumblr.com/share?v=3&amp;u=&lt;?php the_permalink(); ?&gt;&amp;t=&lt;?php the_title(); ?&gt;&amp;s=&lt;?php the_excerpt(); ?&gt;</pre>
</li>
<li>
<h3>Twitter</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://twitter.com/home?status=&lt;?php the_title(); ?&gt; - &lt;?php the_permalink(); ?&gt;</pre>
</li>
<li>
<h3>Wink</h3>
<pre class="brush: php; html-script: true; title: ; notranslate"> http://www.wink.com/_/tag? url=&lt;?php the_permalink(); ?&gt;&amp;doctitle=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Yahoo Bookmarks</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://bookmarks.yahoo.com/toolbar/savebm?u=&lt;?php the_permalink(); ?&gt;&amp;t=&lt;?php the_title(); ?&gt;</pre>
</li>
<li>
<h3>Yahoo Buzz</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">http://buzz.yahoo.com/buzz?targetUrl=&lt;?php the_permalink(); ?&gt;&amp;headline=&lt;?php the_title(); ?&gt;&amp;summary==&lt;?php the_excerpt(); ?&gt;</pre>
</li>
</ol>
<p>If you would rather avoid using plugins in your blog and have complete control for yourself, then you might prefer to code the links into your theme yourself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.narga.net/45-most-popular-social-bookmarking-link-codes-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to List most recent comments and recent post on your wordpress themes</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes</link>
		<comments>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 13:30:22 +0000</pubDate>
		<dc:creator>Narga</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress recipes]]></category>
		<category><![CDATA[wordpress tips and tricks]]></category>

		<guid isPermaLink="false">http://www.narga.net/?p=1319</guid>
		<description><![CDATA[Installing too many plugins will make the wordpress blog work slowly and unstable, use code built in your theme will reduce the system resources. I've known a ton of plugins and widgets that allows me to list recent comments and recent post on my WordPress blog but I'm not using it because I've integrated some useful code below then I get results similar to those extensions which I've known.]]></description>
			<content:encoded><![CDATA[<p>Installing too many plugins will make the WordPress blog work slowly and unstable, use code built-in your theme will reduce the system resources.<br />
<div id="attachment_1322" class="wp-caption aligncenter" style="width: 490px"><img src="http://www.narga.net/wp-content/uploads/2009/10/86.jpg" alt="Most recent post and comments" width="480" height="360" class="size-full wp-image-1322" /><p class="wp-caption-text">Most recent post and comments</p></div>I've known a ton of plugins and widgets that allows me to list recent comments and recent post on my WordPress blog but I'm not using it. Because I've integrated some useful code below then I get results similar to those extensions which I've known.</p>
<h3>List most recent comments</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">&lt;?php
  global $wpdb;
  $sql = &quot;SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,30) AS com_excerpt FROM $wpdb-&gt;comments LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID = $wpdb-&gt;posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 10&quot;;

  $comments = $wpdb-&gt;get_results($sql);
  $output = $pre_HTML;
  $output .= &quot;n&lt;ul&gt;&quot;;
  foreach ($comments as $comment) {
    $output .= &quot;n&lt;li&gt;&quot;.strip_tags($comment-&gt;comment_author) .&quot;:&quot; . &quot;&lt;a href=&quot;&quot; . get_permalink($comment-&gt;ID).&quot;#comment-&quot; . $comment-&gt;comment_ID . &quot;&quot; title=&quot;on &quot;.$comment-&gt;post_title . &quot;&quot;&gt;&quot; . strip_tags($comment-&gt;com_excerpt).&quot;&lt;/a&gt;&lt;/li&gt;&quot;;
  }
  $output .= &quot;n&lt;/ul&gt;&quot;;
  $output .= $post_HTML;
  echo $output;
?&gt;</pre>
<p><span id="more-1319"></span>If you want to list more or less comments, simply change the "10" in the <strong>$sql</strong> variable.</p>
<h3>List most recent posts</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">&lt;?php query_posts('showposts=5'); ?&gt;
&lt;ul&gt;
&lt;?php while (have_posts()) : the_post(); ?&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endwhile;?&gt;
&lt;/ul&gt;</pre>
<p>Do you want to deactive your <em>List most recent comments and recent post</em> plugins then use code snippets above?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>Display plan text counter of FeedBurner, Delicious and Twitter tricks for your theme</title>
		<link>http://www.narga.net/display-plan-text-counter-of-feedburner-delicious-and-twitter/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=display-plan-text-counter-of-feedburner-delicious-and-twitter</link>
		<comments>http://www.narga.net/display-plan-text-counter-of-feedburner-delicious-and-twitter/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 16:36:31 +0000</pubDate>
		<dc:creator>Narga</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress recipes]]></category>

		<guid isPermaLink="false">http://www.narga.net/?p=1076</guid>
		<description><![CDATA[Feedburner, Delicious and Twitter counter buttons are ugly. They don’t match with all the designs, and on most designs they just look ugly. The ability to display the subscriber count gives you a lot of control over styling and make the count work with your design. Therefore in this article we will share a way you can display FeedBurner subscriber, Twitter follwers, Delicious saver count as text in WordPress which allows you can style it and make it look like a part of a design rather than a copy and paste.]]></description>
			<content:encoded><![CDATA[<p>FeedBurner, Delicious and Twitter provided a way to  showing you the several times the URL of the current page has actually appeared on their services. So the visitors assessed to your website can know How many people were Subscribed your feed url, how many people you have bookmarked your website url at Delicious or how many follower of your Twitter account ...</p>
<div id="attachment_1102" class="wp-caption aligncenter" style="width: 460px"><img class="size-medium wp-image-1102" src="http://www.narga.net/wordpress/wp-content/uploads/2009/10/qwh-17-450x157.jpg" alt="Display plan text counter" width="450" height="157" /><p class="wp-caption-text">Display plan text counter</p></div>
<p>Simple, their counter buttons are ugly. They don’t match with all the designs, and on most designs they just look ugly. The ability to display the subscriber count gives you a lot of control over styling and make the count work with your design. Therefore in this article we will share a way you can display FeedBurner subscriber, Twitter followers, Delicious saver count as text in WordPress (<em>it also has the same effect in other blog, cms platform</em>) which allows you can style it and make it look like a part of a design rather than a copy and paste.<br />
<span id="more-1076"></span></p>
<h3>Display your FeedBurner count in full text</h3>
<p>Copy paste the following code into your template, replace feedburner-id with your FeedBuner username. This script will grab you the feed count in numbers.</p>
<pre class="brush: php; title: ; notranslate">//get cool FeedBurner count
$fburl=&quot;http://api.feedburner.com/awareness/1.0/GetFeedData?uri=feedburner-id&quot;;
//Initialize the Curl session
$ch = curl_init();
//Set curl to return the data instead of printing it to the browser.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//Set the URL
curl_setopt($ch, CURLOPT_URL, $whaturl);
//Execute the fetch
$data = curl_exec($ch);
//Close the connection
curl_close($ch);
$xml = new SimpleXMLElement($data);
$rsscount = $xml-&gt;feed-&gt;entry['circulation'];
//end get cool feedburner count
echo $rsscount;
?&gt;</pre>
<p>To Display Feed Counter For Google FeedProxy In Text you can use the above code but you need to change this:</p>
<pre class="brush: php; title: ; notranslate">$fburl=&quot;http://api.feedburner.com/awareness/1.0/GetFeedData?uri=feedburner-id&quot;;</pre>
<p>Into This:</p>
<pre class="brush: php; title: ; notranslate">$fburl=&quot;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=feedburner-id&quot;;</pre>
<p>You can surround it with the styling you like.</p>
<h3>Get the number of Twitter follower in full text</h3>
<p>When you have a website or blog and use Twitter, it is cool to display how many followers you have. To do so, simply use the short code snippet below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
$xml=file_get_contents('http://twitter.com/users/show.xml?screen_name=catswhocode');
if (preg_match('/followers_count&gt;(.*)&lt;/',$xml,$match)!=0) {
	$tw['count'] = $match[1];
}
echo $tw['count'];
?&gt;
</pre>
<p>Replace twitter-id with your twitter username.</p>
<h3>Show how many times your url has been added to Delicious</h3>
<p>To make your count into plain text (for now and then you can do with it what ever you want) I'll use small JavaScript and del.icio.us JSON feeds.<br />
<strong>The HTML code</strong></p>
<pre class="brush: xml; title: ; notranslate">I was found &lt;span id=&quot;delicious-count&quot;&gt;0&lt;/span&gt; reader who has been saved me to del.icio.us</pre>
<p><strong>The JavaScript</strong></p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
//the callback -- what do we do with the json response?
function get_delicious_count(info) {
	//get the number of saves
	var num = info[0].total_posts
	//if none, do nothing
	if(!num) return;
	//if some, I add the number to the end of my link, like at the top of every one of my article posts.
	return $('delic').set({
		'text': $('delic').get('text') + ' (' + num + ')',
		'title': num + ' people found this post delicious!'
	});
}
&lt;/script&gt;

&lt;!-- GET THE JSON DATA --&gt;
&lt;script src='http://badges.del.icio.us/feeds/json/url/data?url=http://www.narga.net/display-plan-text-counter-of-feedburner-delicious-and-twitter/&amp;callback=get_delicious_count'&gt;&lt;/script&gt;
</pre>
<p>That’s it. It might look complicated, but it’s not. Just read it over slowly and let me know if you have any questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.narga.net/display-plan-text-counter-of-feedburner-delicious-and-twitter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Separate pings from comments in WordPress v2.7+</title>
		<link>http://www.narga.net/separate-pings-from-comments-in-wordpress-v2-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=separate-pings-from-comments-in-wordpress-v2-7</link>
		<comments>http://www.narga.net/separate-pings-from-comments-in-wordpress-v2-7/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 05:00:18 +0000</pubDate>
		<dc:creator>Narga</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress recipes]]></category>

		<guid isPermaLink="false">http://www.narga.net/?p=89</guid>
		<description><![CDATA[One of the greatest disruptions to the conversation that goes on in comments are the trackbacks. They’re great, and I love it when people link to my blog. I always want to separate them because they really detract from the discussions that my readers are having, and they sometimes can make it difficult for a new reader to follow. How about you? This tutorial will show you how to separate Trackbacks/Pings and Comments in WordPress]]></description>
			<content:encoded><![CDATA[<p>One of the greatest disruptions to the conversation that goes on in comments are the trackbacks. They’re great, and I love it when people link to my blog. I always want to separate them because they really detract from the discussions that my readers are having, and they sometimes can make it difficult for a new reader to follow. How about you? This tutorial will show you how to separate Trackbacks/Pings and Comments in WordPress</p>
<blockquote><p><strong>What is the Difference Between a Comment and a Trackback?</strong><br />
A comment is an interaction between a reader and the blogger about the blog post. A trackback is a link to this post published on another blog post.</p></blockquote>
<p>The thing it, it’s a little bit different in WordPress 2.7+ than in previous versions, so I had to look up how to split the comments from trackbacks. I started off by making some modifications to the comments.php and functions.php files. Now, comments show up on top, and trackbacks show up below.<br />
<span id="more-89"></span><br />
<h3>The comments loop in WordPress 2.7+</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">&lt;?php if ( have_comments() ) : ?&gt;
&lt;h3 id=&quot;comments&quot;&gt;&lt;?php comments_number('No Responses', 'One Response', '% Responses' );?&gt; to “&lt;?php the_title(); ?&gt;”&lt;/h3&gt;
&lt;ol class=&quot;commentlist&quot;&gt;
        &lt;?php wp_list_comments(); ?&gt;
        &lt;/ol&gt;
&lt;div class=&quot;navigation&quot;&gt;
&lt;div class=&quot;alignleft&quot;&gt;&lt;?php previous_comments_link() ?&gt;&lt;/div&gt;
&lt;div class=&quot;alignright&quot;&gt;&lt;?php next_comments_link() ?&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;?php else : // this is displayed if there are no comments so far ?&gt;
        &lt;?php if ('open' == $post-&gt;comment_status) : ?&gt;
                &lt;!-- If comments are open, but there are no comments. --&gt;
        &lt;?php else : // comments are closed ?&gt;
                &lt;!-- If comments are closed. --&gt;
&lt;p class=&quot;nocomments&quot;&gt;Comments are closed.
        &lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;
</pre>
<p>As you can see it is much simpler than the old comments “loop”. The majority of everything that is happening is now done via the function wp_list_comments.<br />
To show separate trackbacks and pingbacks on a page in WordPress 2.7 or above, you can change the code in the default <em>comments.php</em> with the following:</p>
<h3>Remove pingbacks and trackbacks in comments list</h3>
<ol>
<li>Open comments.php then find
<pre class="brush: php; title: ; notranslate">&lt;?php if ( have_comments() ) : ?&gt;</pre>
</li>
<li>Add the following codes after it:
<pre class="brush: php; title: ; notranslate">&lt;?php if ( ! empty($comments_by_type['comment']) ) : ?&gt;</pre>
</li>
<li>Then find
<pre class="brush: php; title: ; notranslate">&lt;?php wp_list_comments(); ?&gt;</pre>
</li>
<li>Make it change like this
<pre class="brush: php; title: ; notranslate">&lt;?php wp_list_comments('type=comment'); ?&gt;</pre>
<p>last step is write this code below after the wp_list_comments function.
<pre class="brush: php; title: ; notranslate">&lt;/ol&gt;&lt;?php endif; ?&gt;</pre>
</li>
</ol>
<h3>Display pingbacks and trackbacks</h3>
<p>You can do it with similar previous step about</p>
<pre class="brush: php; title: ; notranslate">&lt;?php if ( ! empty($comments_by_type['pings']) ) : ?&gt;
&lt;h3 id=&quot;pings&quot;&gt;Trackbacks/Pingbacks&lt;/h3&gt;
&lt;ol class=&quot;commentlist&quot;&gt;
&lt;?php wp_list_comments('type=pings'); ?&gt;
&lt;/ol&gt;
&lt;?php endif; ?&gt;</pre>
<p>Now we need to style the pingbacks and trackbacks list by add new functions to <em>functions.php</em></p>
<ol>
<li>Make change
<pre class="brush: php; title: ; notranslate">&lt;?php comments_template(); ?&gt;</pre>
<p> to
<pre class="brush: php; title: ; notranslate">&lt;?php comments_template('', true); ?&gt;</pre>
<p> in <em>single.php</em></li>
<li>Add new functions to <em>functions.php</em>
<pre class="brush: php; title: ; notranslate">&lt;?php
    function list_pings($comment, $args, $depth) {
           $GLOBALS['comment'] = $comment;
    ?&gt;
            &lt;li id=&quot;comment-&lt;?php comment_ID(); ?&gt;&quot;&gt;&lt;?php comment_author_link(); ?&gt;
    &lt;?php } ?&gt;</pre>
</li>
</ol>
<p>You need to call <strong>$listping</strong> functions (new style of list pingbacks) in <em>single.php</em></p>
<pre class="brush: php; title: ; notranslate">&lt;ol class=&quot;pinglist&quot;&gt;
&lt;?php wp_list_comments('type=pings&amp;callback=list_pings'); ?&gt;</pre>
<h3>Full loop code below</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">
&lt;?php if ( have_comments() ) : ?&gt;
	&lt;?php if ( ! empty($comments_by_type['comment']) ) : ?&gt;
	&lt;h3 id=&quot;comments&quot;&gt;&lt;?php comments_number('No Responses', 'One Response', '% Responses' );?&gt; to &#8220;&lt;?php the_title(); ?&gt;&#8221;&lt;/h3&gt;

	&lt;ol class=&quot;commentlist&quot;&gt;
	&lt;?php wp_list_comments('type=comment'); ?&gt;
	&lt;/ol&gt;
	&lt;?php endif; ?&gt;

	&lt;?php if ( ! empty($comments_by_type['pings']) ) : ?&gt;
	&lt;h3 id=&quot;pings&quot;&gt;Trackbacks/Pingbacks&lt;/h3&gt;
       &lt;?php
           function list_pings($comment, $args, $depth) {
           $GLOBALS['comment'] = $comment;
       ?&gt;
            &lt;li id=&quot;comment-&lt;?php comment_ID(); ?&gt;&quot;&gt;&lt;?php comment_author_link(); ?&gt;
       &lt;?php } ?&gt;
	&lt;ol class=&quot;pinglist&quot;&gt;
	&lt;?php wp_list_comments('type=pings&amp;callback=list_pings'); ?&gt;
	&lt;/ol&gt;
	&lt;?php endif; ?&gt;

	&lt;div class=&quot;navigation&quot;&gt;
		&lt;div class=&quot;alignleft&quot;&gt;&lt;?php previous_comments_link() ?&gt;&lt;/div&gt;
		&lt;div class=&quot;alignright&quot;&gt;&lt;?php next_comments_link() ?&gt;&lt;/div&gt;
	&lt;/div&gt;
 &lt;?php else : // this is displayed if there are no comments so far ?&gt;

	&lt;?php if ('open' == $post-&gt;comment_status) : ?&gt;
		&lt;!-- If comments are open, but there are no comments. --&gt;

	&lt;?php else : // comments are closed ?&gt;
		&lt;!-- If comments are closed. --&gt;
		&lt;p class=&quot;nocomments&quot;&gt;Comments are closed.&lt;/p&gt;

	&lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;
</pre>
<p>This is how we have separated the trackbacks/pingbacks from comments, hidden the trackbacks and styled our comments in WordPress 2.7.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.narga.net/separate-pings-from-comments-in-wordpress-v2-7/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

