<?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>Developer Code book &#187; wordpress hacks</title> <atom:link href="http://wordpressapi.com/category/wordpress/wordpress-hacks/feed/" rel="self" type="application/rss+xml" /><link>http://wordpressapi.com</link> <description>Wordpressapi.com is focused on Wordpress API, wordpress news, wordpress themes, wordpress plugins, wordpress tips, wordpress tutorials, wordpress design wordpress templates, wordpress breaking news and web-development. We deliver useful information about wordpress,  wordpress latest trends and wordpress techniques, wordpress useful ideas, wordpress innovative approaches and wordpress tools. Social Media news blog covering cool new websites and social networks: Facebook, Google, Twitter, MySpace and YouTube.  The latest web technology news, via RSS daily.</description> <lastBuildDate>Sun, 05 Sep 2010 06:21:54 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Increasing memory allocated in WordPress</title><link>http://wordpressapi.com/2010/08/14/increasing-memory-allocated-wordpress-2/</link> <comments>http://wordpressapi.com/2010/08/14/increasing-memory-allocated-wordpress-2/#comments</comments> <pubDate>Sat, 14 Aug 2010 10:55:00 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Open source]]></category> <category><![CDATA[technology]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress news]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress tip]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=5182</guid> <description><![CDATA[Many people faced memory issue wordpress and WordPress itself uses the so much memory. By default wordpress uses the 32mb memory. First you need to know what is the use of increasing the memory limit for wordpress. If I increase the WP_MEMORY_LIMIT from 32M to 64 or 96M will it make my website load fast......]]></description> <content:encoded><![CDATA[<p><img
class="alignnone size-full wp-image-5183" title="wordpress-memory-increaze" src="http://wordpressapi.com/files/wordpress-memory-increaze.png" alt="" width="471" height="581" /></p><p>Many people faced memory issue wordpress and WordPress itself uses the so much memory. By default wordpress uses the 32mb memory.</p><p>First you need to know what is the use of increasing the memory limit for wordpress. If I increase the WP_MEMORY_LIMIT from 32M to 64 or 96M will it make my website load fast.</p><p>We can adjust the amount of memory using the <strong>wp-config.php</strong> file.</p><pre class="brush: php;">
define('WP_MEMORY_LIMIT', '96M');
</pre><p>Many shared hosting provides the default memory for php. What I see most commonly shared hosting set the memory limit to 8mb or 16mb. They does not allow you to increase the php memory limit and in that case if you changed the wp-config file then also there is no use of that change.</p><p>What that setting do?<br
/> This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 32MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 32MB.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/08/14/increasing-memory-allocated-wordpress-2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to Optimize Your WordPress Database</title><link>http://wordpressapi.com/2010/07/25/optimize-wordpress-database/</link> <comments>http://wordpressapi.com/2010/07/25/optimize-wordpress-database/#comments</comments> <pubDate>Sun, 25 Jul 2010 07:29:13 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Plugins]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[plugins]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wp plugin]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=4904</guid> <description><![CDATA[When we are using the wordpress sites then we need to clean the database always. If your site is having more than 500 articles then you need to worry about server performance. Mysql load will impact your server.  Many people are suggesting to use the WP-DBManager wordpress plugin. But forgot about plugin feature. That plugin.....]]></description> <content:encoded><![CDATA[<p>When we are using the wordpress sites then we need to clean the database always. If your site is having more than 500 articles then you need to worry about server performance.</p><p>Mysql load will impact your server.  Many people are suggesting to use the WP-DBManager wordpress plugin. But forgot about plugin feature. That plugin specially made for database backup and managing the tables.</p><p>If you want to optimize your wordpress database then you need to use wp-optimize wordpress plugin. I found that is only plugin is helpful for really keep optimize your wordpress database.</p><p>I used that plugin. Before using that plugin my mysql database size was 135mb. After using that wp-optimize plugin features database size was 4mb. That means my database really really optimized.</p><p>My sites performance was also improved.</p><p>What is features of wp-optimize?</p><ul><li>Remove the existing wordpress post revisions</li><li>Remove all  the comments in the spam queue</li><li>Remove all the un-approved  comments</li><li>Rename one username to another username, it’s designed  to rename default “Admin” user to something else</li><li>Apply MySql  optimize commands on your database tables without phpMyAdmin.</li><li>Display  Database table statistics.</li></ul><p>I really liked this wordpress plugin. Thanks to Ruhani Rabin who wrote this plugin.</p><p><img
class="alignnone size-full wp-image-4905" title="wp-optimize" src="http://wordpressapi.com/files/wp-optimize.jpg" alt="" width="378" height="77" /></p><p>You can download this plugin from here</p><p><a
href="http://wordpress.org/extend/plugins/wp-optimize/" target="_blank">http://wordpress.org/extend/plugins/wp-optimize/</a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/07/25/optimize-wordpress-database/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Keep upto date wordpress database with WP-DB-Backup</title><link>http://wordpressapi.com/2010/07/04/upto-date-wordpress-database-wp-db-backup/</link> <comments>http://wordpressapi.com/2010/07/04/upto-date-wordpress-database-wp-db-backup/#comments</comments> <pubDate>Sun, 04 Jul 2010 08:51:39 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Plugins]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[wordpress plugins]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wp]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=4061</guid> <description><![CDATA[Keeping your wordpress database is very important for wordpress database. This will improve your site speed aslo. Many times you install the wordpress plugins and some time you dont want that plugins and you delete that plugins. There is very nice wordpress plugin is avilable for database backup. WP-DB-Backup WP-DB-Backup allows you easily to backup.....]]></description> <content:encoded><![CDATA[<p>Keeping your wordpress database is very important for wordpress database. This will improve your site speed aslo.<br
/> Many times you install the wordpress plugins and some time you dont want that plugins and you delete that plugins. There is very nice wordpress plugin is avilable for database backup.</p><h2><a
href="http://wordpress.org/extend/plugins/wp-db-backup/" target="_blank">WP-DB-Backup</a></h2><p>WP-DB-Backup allows you easily to backup your core WordPress database  tables.  You may also backup other tables in the same database.<br
/> But that plugins create some tables in your wordpress database. You need to remove that tables from your wordpress database.<br
/> Imp note: when ever you are cleaning the database or deleting the unwanted tables from wordpress database. Please consult with your web administrator.<br
/> Dont forget to take a full backup of your database.</p><p>This tutorial should be forward-compatible with WordPress 3.0</p><p>1. Install WP-DB-Backup by Austin Matzko</p><p>2. Mouse over Tools so that the down arrow appears</p><p>3. Click the down arrow</p><p>4. Click Backup</p><p>5. You’ll see something like this:</p><p><a
href="http://wordpressapi.com/files/wp-db-backup.jpg"><img
class="alignnone size-full wp-image-4063" title="wp-db-backup" src="http://wordpressapi.com/files/wp-db-backup.jpg" alt="" width="540" height="476" /></a></p><p>On the left are the default database tables included with WordPress. All of these are included every time you backup. The only thing you have to decide here is whether to exclude spam comments from being backed up (I recommend this) and whether to exclude post revisions (I recommend excluding these too, unless you have a specific reason for keeping revisions).</p><p>On the right is a list of additional database tables, most of which were probably created by plugins. There’s also a table called that will end with the name “commentmeta” – this can be used by plugins.</p><p>If your plugins have created a lot of data that you would like to save, or you’ve spent a lot of time configuring particular plugins, you’ll want to backup these tables. Otherwise, you can keep your database backups smaller by not checking them.</p><p>7. Next we see the Backup Option. There are three choices here:</p><p>A. Save to the server</p><p>This will save a backup of your database as a file on your web server. I don’t recommend this.</p><p>B. Download to your computer.</p><p>This will create a database backup file that you can save to your local computer.</p><p>C. Email backup to:</p><p>This allows you to send a copy of the backup to any e-mail address you’d like.</p><p>8. Let’s go ahead and download a copy to our hard drives now.</p><p>Check options you want in the Tables section then click “Backup now!”</p><p>You should see a progress bar, and when that’s done your browser will prompt you to save the file. You can save this file wherever you’d like.</p><p>9. There’s another section called “Scheduled Backup.” This is where this program gets really great.</p><p>Here we can schedule a backup to be e-mailed to a particular e-mail address however often we’d like. I recommend checking selecting “Once Daily.”</p><p>10. On the right, you’ll see that list of optional tables again. Check the ones you want to backup every time the backup runs.</p><p>11. Enter the e-mail address you want the backups delivered to in the “Email backup to:” field.</p><p>12. Click “Schedule backup.”</p><p>13. You should now get a backup file as an e-mail attachment every day. You should save these attachments to your local computer. If you’re using Gmail or another web mail host that has a lot of storage space, you might want to leave your databases on their server as an additional off-site backup. Be aware that that’s an additional security risk – if your e-mail account is ever compromised, the would have access to all of your database backups.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/07/04/upto-date-wordpress-database-wp-db-backup/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Restrict the Adults on wordpress website</title><link>http://wordpressapi.com/2010/07/04/restrict-adults-wordpress-website/</link> <comments>http://wordpressapi.com/2010/07/04/restrict-adults-wordpress-website/#comments</comments> <pubDate>Sun, 04 Jul 2010 08:39:01 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Plugins]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[plugins]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wp]]></category> <category><![CDATA[wp plugin]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=4057</guid> <description><![CDATA[Many times you website content is not suitable for all the age group. There is very nice wordpress free plugin available. Restricted to Adults There&#8217;s a lot of content which isn&#8217;t appropriate for all ages. The [Association of Sites Advocating Child Protection (ASACP)](http://www.asacp.org/ &#8220;ASACP) has developed the Restricted to Adults (RTA) tag which most online.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/ASACP-Association-of-Sites-Advocating-Child-Protection_1278232686312.png"><img
class="alignnone size-full wp-image-4058" title="ASACP- Association of Sites Advocating Child Protection_1278232686312" src="http://wordpressapi.com/files/ASACP-Association-of-Sites-Advocating-Child-Protection_1278232686312.png" alt="" width="567" height="258" /></a></p><p>Many times you website content is not suitable for all the age group. There is very nice wordpress free plugin available.</p><h2><a
href="http://wordpress.org/extend/plugins/restricted-to-adults/" target="_blank">Restricted to Adults</a></h2><p>There&#8217;s a lot of content which isn&#8217;t appropriate for all ages. The  [Association of Sites Advocating Child Protection  (ASACP)](http://www.asacp.org/ &#8220;ASACP) has developed the Restricted to  Adults (RTA) tag which most online protection software respects.</p><p>Installing the RTA tag on a WordPress install can be somewhat  complicated, so the Restricted to Adults plugin makes it one click &#8212;  activate the plugin and your site is restricted to adults.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/07/04/restrict-adults-wordpress-website/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>how to do persistent database connection in wordpress</title><link>http://wordpressapi.com/2010/06/30/persistent-database-connection-wordpress/</link> <comments>http://wordpressapi.com/2010/06/30/persistent-database-connection-wordpress/#comments</comments> <pubDate>Wed, 30 Jun 2010 16:58:17 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress hack]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wp]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=3898</guid> <description><![CDATA[What is persistent database connection? Persistent connections are links that do not close when the execution of your script ends. When a persistent connection is requested, PHP checks if there&#8217;s already an identical persistent connection (that remained open from earlier) &#8211; and if it exists, it uses it. If it does not exist, it creates.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/mysql-database-connection.jpg"><img
class="alignnone size-full wp-image-3900" title="mysql-database-connection" src="http://wordpressapi.com/files/mysql-database-connection.jpg" alt="" width="399" height="291" /></a></p><p>What is persistent database connection?</p><p>Persistent connections are links that do not close when the    execution of your script ends. When a persistent connection is    requested, PHP checks if there&#8217;s already an identical persistent    connection (that remained open from earlier) &#8211; and if it exists, it    uses it. If it does not exist, it creates the link. An &#8216;identical&#8217;    connection is a connection that was opened to the same host, with    the same username and the same password (where applicable).</p><p>If you want to use the persistent database connection then you should follow my steps:</p><p>First Open the wp-db.php file from wp-includes folder. In that file find following words:</p><pre class="brush: php;">

// @mysql_connect( $dbhost, $dbuser, $dbpassword, true );

//Change that to

@mysql_pconnect( $dbhost, $dbuser, $dbpassword, true );
</pre><p>comment the mysql_connect line. This line you will find two times in that file. You need to change the line both the times. Then upload this file to your wordpress installation.</p><p>Persistent database connection will open only one connection and for every query that will check for connection is present or not. If connection is alreadypresent then your query will execute using that persistent database connection.</p><p>There are cupple of issues with persistent database connection, When you are using the persistent connection you should keep following things in mind.</p><p>Imp: There are a couple of additional caveats to keep in mind when     using persistent connections. One is that when using table     locking on a persistent connection, if the script for whatever     reason cannot release the lock, then subsequent scripts using the     same connection will block indefinitely and may require that you     either restart the httpd server or the database server. Another is     that when using transactions, a transaction block will also carry     over to the next script which uses that connection if script  execution     ends before the transaction block does. In either case, you can     use <a
href="http://www.php.net/manual/en/function.register-shutdown-function.php">register_shutdown_function()</a> to register a     simple cleanup function to unlock your tables or roll back your     transactions. Better yet, avoid the problem entirely by not using     persistent connections in scripts which use table locks or     transactions (you can still use them elsewhere).</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/30/persistent-database-connection-wordpress/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>How to use the the_post_thumbnail In WordPress 3.0</title><link>http://wordpressapi.com/2010/06/29/how-to-use-the-the_post_thumbnail-in-wordpress-3-0/</link> <comments>http://wordpressapi.com/2010/06/29/how-to-use-the-the_post_thumbnail-in-wordpress-3-0/#comments</comments> <pubDate>Tue, 29 Jun 2010 19:02:31 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[social]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[post]]></category> <category><![CDATA[thumbnail]]></category> <category><![CDATA[wordpres tips]]></category> <category><![CDATA[wordpress tutotirals]]></category> <category><![CDATA[wp]]></category> <category><![CDATA[wp hacks]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=3841</guid> <description><![CDATA[Now WordPress 3.0 is released and the new post thumbnail function will not changed until. You can provide 4 picture formats to the function (change the width and height values to your need): // the thumbnail the_post_thumbnail(array(100,100)); // medium resolution the_post_thumbnail(array(300,200)); // large resolution the_post_thumbnail(array(600, 400)); // original the_post_thumbnail(); You can set how the images.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/wordpress-post-thumbnail.png"><img
class="alignnone size-full wp-image-3842" src="http://wordpressapi.com/files/wordpress-post-thumbnail.png" alt="" width="585" height="403" /></a></p><p>Now WordPress 3.0 is released and the new post thumbnail function will  not changed until.</p><p>You can provide 4 picture formats to the function (change the width and  height values to your need):</p><pre class="brush: php;">
// the thumbnail
the_post_thumbnail(array(100,100));

// medium resolution
the_post_thumbnail(array(300,200));

// large resolution
the_post_thumbnail(array(600, 400));

// original
the_post_thumbnail();
</pre><p>You can set how the images should align. It is also possible to assign an own class:</p><pre class="brush: php;">
//  left align
the_post_thumbnail(array(100,100), array('class' =&gt; 'alignleft'));

//  right align
the_post_thumbnail(array(100,100), array('class' =&gt; 'alignright'));

//  center
the_post_thumbnail(array(100,100), array('class' =&gt; 'aligncenter'));

// align right and the class  'my_own_class'
the_post_thumbnail(array(100,100), array('class' =&gt; 'alignright my_own_class'));
</pre><p>The 3rd possibility is the control of the images size with an array of height and width:<br
/> For this purpose we suppose that the settings for thumbnail is 150&#215;150, for medium 300&#215;200 and for large 600&#215;400.</p><pre class="brush: php;">
// thumbnail scaled to 60x60 pixel
the_post_thumbnail(array(60,60), array('class' =&gt; 'alignleft'));

// original thumbnail
the_post_thumbnail(array(150,150), array('class' =&gt; 'alignleft'));

// medium resolution scaled to 200x133 pixel
the_post_thumbnail(array(200,200), array('class' =&gt; 'alignleft'));

// large resolution scaled to 400x266 Pixel
the_post_thumbnail(array(400,345), array('class' =&gt; 'alignleft'));
</pre><p>We see that the image proportions are always maintained, even if one specifies crooked values.</p><p>For the Theme Designers is this not necessarily easier, because no one knows what the user will put in his settings o his library. One way to approach this problem, to query the options for the various sizes:</p><pre class="brush: php;">
// width of the thumbnails
get_option('thumbnail_size_w');

//  height of the thumbnails
get_option('thumbnail_size_h');

//  height of the medium resolution
get_option('medium_size_h');

//  width of the large resolution
get_option('large_size_w');

//  1 = Crop thumbnail to exact dimensions, 0 = Crop off
get_option('thumbnail_crop')
</pre><p>You can change these values in your theme.</p><pre class="brush: php;">
$w = get_option('thumbnail_size_w') / 2;
$h = get_option('thumbnail_size_h') /2;

the_post_thumbnail(array($w, $h), array('class' =&gt; 'alignleft'));
</pre><p>Here another example: If the size of a thumbnail is bigger than 100&#215;100 and crop is activated, then the thumbnail should be resized to 100&#215;100, otherwise use the original thumbnail.</p><pre class="brush: php;">
if(get_option('thumbnail_size_w') &gt; 100 &amp;&amp; get_option('thumbnail_crop') == 1) {
    the_post_thumbnail(array(100,100));
}else{
    the_post_thumbnail('thumbnail');
}
</pre><h3>What Matt is saying?</h3><p>I wouldn&#8217;t recommend anyone use the named arguments for the_post_thumbnail, like &#8216;thumbnail&#8217;, could you remove those from your tutorial.</p><p><a
href="http://wpengineer.com/the-ultimative-guide-for-the_post_thumbnail-in-wordpress-2-9/" target="_blank">Inspired by </a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/29/how-to-use-the-the_post_thumbnail-in-wordpress-3-0/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>small security for wordpress site</title><link>http://wordpressapi.com/2010/06/26/small-security-wordpress-site/</link> <comments>http://wordpressapi.com/2010/06/26/small-security-wordpress-site/#comments</comments> <pubDate>Sat, 26 Jun 2010 06:59:16 +0000</pubDate> <dc:creator>Mahesh</dc:creator> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress security]]></category> <category><![CDATA[wordpress tips]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=3632</guid> <description><![CDATA[Here is one small security to protect your wordpress site. We all know that, when the blog admin left a comment on his blog, WordPress use the name in the comment css class. If admin left a comment on his blog any would-be hacker/cracker only has to figure out your password–making it much easier to.....]]></description> <content:encoded><![CDATA[<p>Here is one small security to protect your wordpress site.</p><p><a
href="http://wordpressapi.com/files/security-for-wordpress.jpg"><img
class="alignnone size-full wp-image-3633" title="security-for-wordpress" src="http://wordpressapi.com/files/security-for-wordpress.jpg" alt="" width="310" height="303" /></a></p><p>We all know that, when the blog admin left a comment on his blog,  WordPress use the name in the comment css class. If admin left a comment on his blog any would-be hacker/cracker only has to figure out your password–making  it much easier to get into your site. So..</p><h2>Remove admin name in comments class</h2><p>Here&#8217;s simple solution, put this code on your <code>functions.php</code></p><p><span
style="color: #808000">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></p><p><code>function</code> <code>remove_comment_author_class( </code><code>$classes</code> <code>) {</code></p><div><table><tbody><tr><td><code></code></td><td><code> </code><code>foreach</code><code>( </code><code>$classes</code> <code>as</code> <code>$key</code> <code>=&gt; </code><code>$class</code> <code>) {</code></td></tr></tbody></table></div><div><table><tbody><tr><td><code></code></td><td><code> </code><code>if</code><code>(</code><code>strstr</code><code>(</code><code>$class</code><code>, </code><code>"comment-author-"</code><code>)) {</code></td></tr></tbody></table></div><div><table><tbody><tr><td><code></code></td><td><code> </code><code>unset( </code><code>$classes</code><code>[</code><code>$key</code><code>] );</code></td></tr></tbody></table></div><div><table><tbody><tr><td><code></code></td><td><code> </code><code>}</code></td></tr></tbody></table></div><div><table><tbody><tr><td><code></code></td><td><code> </code><code>}</code></td></tr></tbody></table></div><div><table><tbody><tr><td><code></code></td><td><code> </code><code>return</code> <code>$classes</code><code>;</code></td></tr></tbody></table></div><div><table><tbody><tr><td><code></code></td><td><code>}</code></td></tr></tbody></table></div><table><tbody><tr><td><code></code></td><td><code>add_filter( </code><code>'comment_class'</code> <code>, </code><code>'remove_comment_author_class'</code> <code>);</code></td></tr></tbody></table><p><code> </code></p><div><table><tbody><tr><td></td><td></td></tr></tbody></table></div><table
style="height: 24px" width="247"><tbody><tr><td></td><td></td></tr></tbody></table><p><span
style="color: #808000">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></p><p>The code above will clean <code>comment_class</code> for the author.</p><p>Thank You!</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/26/small-security-wordpress-site/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to Publish The wordpress Feeds Later</title><link>http://wordpressapi.com/2010/06/24/publish-wordpress-feeds/</link> <comments>http://wordpressapi.com/2010/06/24/publish-wordpress-feeds/#comments</comments> <pubDate>Thu, 24 Jun 2010 11:29:25 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress tips]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=3585</guid> <description><![CDATA[When you publish your post,the feed an published to the whole world.That&#8217;s very annoying thing. Some times you need to change the content or change the url, that time you got the errors The following example publishs the post 10 minutes later in your feed: /** * puplish the content in the feed later *.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/Belize-Blue-Hole.jpg"><img
class="alignnone size-full wp-image-3586" title="Belize-Blue-Hole" src="http://wordpressapi.com/files/Belize-Blue-Hole.jpg" alt="" width="461" height="295" /></a></p><p>When you publish your post,the feed an published to the whole world.That&#8217;s very annoying thing.</p><p>Some times you need to change the content or change the url, that time you got the errors</p><p>The following example publishs the post 10 minutes later in your feed:</p><pre class="brush: php;">

/**
 * puplish the content in the feed later
 * $where ist default-var in WordPress (wp-includes/query.php)
 * // Apply filters on where and join prior to paging so that any
 * This function an a SQL-syntax
 */
function publish_later_on_feed($where) {
 global $wpdb;

 if ( is_feed() ) {
 // timestamp in WP-format
 $now = gmdate('Y-m-d H:i:s');

 // value for wait; + device
 $wait = '10'; // integer

 // http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff
 $device = 'MINUTE'; //MINUTE, HOUR, DAY, WEEK, MONTH, YEAR

 // add SQL-sytax to default $where
 $where .= &quot; AND TIMESTAMPDIFF($device, $wpdb-&gt;posts.post_date_gmt, '$now') &gt; $wait &quot;;
 }
 return $where;
}

add_filter('posts_where', 'publish_later_on_feed');
</pre><p>You need to open the your wordpress themes functions.php file and put above code in that file. Using this function your feed will publish after 10 minute of your wordpress post publishing.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/24/publish-wordpress-feeds/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to increase the upload_max_filesize in WordPress</title><link>http://wordpressapi.com/2010/06/24/increase-upload_max_filesize-wordpress/</link> <comments>http://wordpressapi.com/2010/06/24/increase-upload_max_filesize-wordpress/#comments</comments> <pubDate>Thu, 24 Jun 2010 10:23:50 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress tips]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=3581</guid> <description><![CDATA[The default upload file size is in php settings is 2 MB and for wordpress also default upload size is 2 MB. When we try to upload big size image or media files in wordpress we got the following error The uploaded file exceeds the upload_max_filesize directive in php.ini For fixing the issue use following.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/wordpress-upload.png"><img
class="alignnone size-full wp-image-3582" title="wordpress-upload" src="http://wordpressapi.com/files/wordpress-upload.png" alt="" width="680" height="223" /></a></p><p>The default upload file size is in php settings is 2 MB and for wordpress also default upload size is 2 MB.<br
/> When we try to upload big size image or media files in wordpress we got the following error</p><p>The uploaded file exceeds the upload_max_filesize directive in php.ini<br
/> For fixing the issue use following steps<br
/> Use the php.ini file from root folder.</p><p>1. Find this line in the php.ini file in your php installtion upload_max_filesize = 2MB and replace it with a higher value (e.g. upload_max_filesize = 64MB)<br
/> 2. Search for this line in your php.ini file post_max_size and increase it.</p><p>If you don&#8217;t have a php.ini file in your directory,<br
/> you can usually generate one from the control panels of your host. or create the file and put following values in that<br
/> memory_limit = 32M<br
/> upload_max_filesize = 100M<br
/> upload_max_filesize = 100M<br
/> post_max_size = 100M</p><p>This file is copied into your wp-admin folder, the problem should be solved.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/24/increase-upload_max_filesize-wordpress/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>How to Change Your the wordpress admin Username</title><link>http://wordpressapi.com/2010/06/17/how-to-change-your-the-wordpress-admin-username/</link> <comments>http://wordpressapi.com/2010/06/17/how-to-change-your-the-wordpress-admin-username/#comments</comments> <pubDate>Thu, 17 Jun 2010 10:40:57 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress tips]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=3272</guid> <description><![CDATA[You cannot change a WordPress.com account username once it has been set. However, you can change what is seen on your posts and comments by changing the display name (nickname) in your profile, or you can create a new account and transfer your blog(s) to the new account. Change Display Name (Nickname) 1. Access your.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/Change-Your-Username-«-Support-—-WordPress.com_1276771109752.png"><img
class="alignnone size-full wp-image-3275" title="Change Your Username « Support — WordPress.com_1276771109752" src="http://wordpressapi.com/files/Change-Your-Username-«-Support-—-WordPress.com_1276771109752.png" alt="" width="301" height="204" /></a>You cannot change a WordPress.com account username once it has been set. However, you can change what is seen on your posts and comments by changing the display name (nickname) in your profile, or you can create a new account and transfer your blog(s) to the new account.</p><p>Change Display Name (Nickname)</p><p>1. Access your User Profile</p><p>2. Change the value next to Display name publicly as under Basic Details</p><p>3. Click Update Profile.</p><p>↑ Table of Contents ↑</p><p>Change Username</p><p>1. Log into your current account (using your existing username)</p><p>2. Access your Personal Settings and change the e-mail address to another email address. This will free up your primary e-mail for use with the new username.</p><p>3. Once the new address has been verified via email confirmation, log out of the account.</p><p>4. Go to http://wordpress.com/signup/ and attempt to register a new account (the username you wish to change to) with your e-mail address.</p><p>5. If you’ve got a blog you should transfer its ownership to your new username.</p><p>Once you’ve done all of that you’ll be rocking WordPress.com with your new username.</p><p>via <a
href="http://en.support.wordpress.com/change-your-username/">Change Your Username « Support</a>.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/17/how-to-change-your-the-wordpress-admin-username/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <item><title>how to work with wordpress plugin filters</title><link>http://wordpressapi.com/2010/06/15/how-to-work-with-wordpress-plugin-filters/</link> <comments>http://wordpressapi.com/2010/06/15/how-to-work-with-wordpress-plugin-filters/#comments</comments> <pubDate>Tue, 15 Jun 2010 17:13:41 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Plugins]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress plugins]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=3250</guid> <description><![CDATA[Filters are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen. Your plugin can specify that one or more of its PHP functions is executed to modify specific types of text at these times, using the Filter API. All filters.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/wordpress-filters-Plugin-API-«-WordPress-Codex_1276624440087.png"><img
class="alignleft size-full wp-image-3251" style="margin: 5px" title="wordpress-filters-Plugin API « WordPress Codex_1276624440087" src="http://wordpressapi.com/files/wordpress-filters-Plugin-API-«-WordPress-Codex_1276624440087.png" alt="" width="285" height="226" /></a>Filters are the hooks that WordPress launches to modify text of various  types before adding it to the database or sending it to the browser  screen. Your plugin can specify that one or more of its PHP functions is  executed to modify specific types of text at these times, using the  Filter API.</p><p>All filters are located in <code><a
title="http://core.trac.wordpress.org/browser/trunk/wp-includes/plugin.php" href="http://core.trac.wordpress.org/browser/trunk/wp-includes/plugin.php">wp-includes/plugin.php</a></code> file. Following function you can use for using the filters in wordpress plugin.</p><h2>has filter</h2><p>Check if any filter has been registered for a hook.</p><pre class="brush: php;">&lt;?php has_filters( $tag, $function_to_check ); ?&gt; </pre><p>$tag</p><p>(string) (required) The name of the filter hook.</p><p>Default: None</p><p>$function_to_check<br
/> (callback) (optional) If specified, return the priority of that function on this hook or false if not attached.</p><p>Default: False</p><h2>add filter</h2><pre class="brush: php;">
&lt;?php add_filter( $tag, $function_to_add, $priority, $accepted_args ); ?&gt;
</pre><p>$tag<br
/> (string) (required) The name of the filter to hook the $function_to_add to.</p><p>Default: None</p><p>$function_to_add<br
/> (callback) (required) The name of the function to be called when the filter is applied.</p><p>Default: None</p><p>$priority<br
/> (integer) (optional) Used to specify the order in which the functions associated with a particular action are executed. Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action.</p><p>Default: 10</p><p>$accepted_args<br
/> (integer) (optional) The number of arguments the function(s) accept(s). In WordPress 1.5.1 and newer. hooked functions can take extra arguments that are set when the matching do_action() or apply_filters() call is run.</p><p>Default: 1</p><p>example</p><pre class="brush: php;">
&lt;?php add_filter('media_upload_newtab', array(&amp;$this, 'media_upload_mycallback')); ?&gt;
</pre><h2>apply filters</h2><pre class="brush: php;">
&lt;?php apply_filters( $tag, $value ); ?&gt;
</pre><p>$tag<br
/> (string) (required) The name of the filter hook.</p><p>Default: None</p><p>$value<br
/> (mixed) (required) The value which the filters hooked to $tag may modify.</p><p>Default: None</p><p>example.</p><pre class="brush: php;">
$myvar = apply_filters( $tag, $value );
</pre><h2>current filter</h2><p>Retrieve the name of the current filter or action.</p><pre class="brush: php;">
&lt;?php current_filter() ?&gt;
</pre><h2>merge filters</h2><p>Merge the filter functions of a specific filter hook with generic filter functions.</p><pre class="brush: php;">
&lt;?php merge_filters($tag); ?&gt;
</pre><p>$tag<br
/> (string) (required) The filter hook of which the functions should be merged.</p><p>Default: None</p><h2>remove filter</h2><p>This function removes a function attached to a specified filter hook. This method can be used to remove default functions attached to a specific filter hook and possibly replace them with a substitute. See also remove_action(), add_filter() and add_action().<br
/> Important: Because of long-time unfixed bugs resulting in flaws of the underlying implementation, it is unpredictable which filters this function will remove when called. Usage might/will result in loss of other then the intended filter(s). Plugin authors should prevent the usage of this function if possible.</p><p>Important: To remove a hook, the $function_to_remove and $priority arguments must match when the hook was added. This goes for both filters and actions. No warning will be given on removal failure.</p><p>$tag<br
/> (string) (required) The action hook to which the function to be removed is hooked.</p><p>Default: None</p><p>$function_to_remove<br
/> (string) (required) The name of the function which should be removed.</p><p>Default: None</p><p>$priority<br
/> (int) (optional) The priority of the function (as defined when the function was originally hooked).</p><p>Default: 10</p><p>$accepted_args<br
/> (int) (optional) The number of arguments the function accepts.</p><p>Default: 1</p><h2>remove all filters</h2><p>Remove all of the hooks from a filter.</p><pre class="brush: php;">
&lt;?php remove_all_filters( $tag, $priority ) ?&gt;
</pre><p>$tag<br
/> (string) (required) The filter to remove hooks from.</p><p>Default: None</p><p>$priority<br
/> (integer) (optional) The priority number to remove.</p><p>Default: false</p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-x&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;x&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>All List of all  WordPress <em>filter</em> hooks you will find on following URL</p><p><a
href="http://adambrown.info/p/wp_hooks/hook/filters" target="_blank">http://adambrown.info/p/wp_hooks/hook/filters</a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/15/how-to-work-with-wordpress-plugin-filters/feed/</wfw:commentRss> <slash:comments>29</slash:comments> </item> <item><title>how to to protect the spam comments in wordpress</title><link>http://wordpressapi.com/2010/06/14/how-to-protect-spam-comments-in-wordpress/</link> <comments>http://wordpressapi.com/2010/06/14/how-to-protect-spam-comments-in-wordpress/#comments</comments> <pubDate>Mon, 14 Jun 2010 17:12:12 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress tips]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=3166</guid> <description><![CDATA[If you are internet user then you know about what is spam. You know or saw spam emails earlier so many times. Comment Spam Hacks The following are not recommended for average users. They involve editing WordPress core files. BACKUP your files first. Delete wp-comments-post.php The ultimate end-all solution to your comment spam troubles. This.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/Stop-Comment-Spam-and-Trackback-Spam-«-Akismet_12765347899421.png"><img
class="alignnone size-full wp-image-3230" title="Stop Comment Spam and Trackback Spam « Akismet_1276534789942" src="http://wordpressapi.com/files/Stop-Comment-Spam-and-Trackback-Spam-«-Akismet_12765347899421.png" alt="" width="621" height="446" /></a>If you are internet user then you know about what is spam. You know or saw spam emails earlier so many times.</p><h3>Comment Spam Hacks</h3><p>The following are not recommended for average users. They involve editing WordPress core files. BACKUP your files first.</p><p>Delete wp-comments-post.php<br
/> The ultimate end-all solution to your comment spam troubles. This will effectively disable comments and is good for stopping comment spam floods. No one will be able to comment on your WordPress site.<br
/> Delete wp-trackback.php<br
/> The ultimate end-all solution to your trackback spam troubles. This will effectively disable trackbacks and is good for stopping trackback spam floods. This will mean that no one will be able to trackback your posts, so do this after consideration.<br
/> Denying access with .htaccess<br
/> While drastic, you can make modifications in your .htaccess file if you are using an Apache server. Check the Internet and Apache for more information.<br
/> Use nofollow<br
/> The nofollow attribute is another method used to strip spammers of their page ranks. According to Google, &#8220;when Google sees the attribute (rel=&#8221;nofollow&#8221;) on hyperlinks, those links won&#8217;t get any credit when we rank websites in our search results.&#8221; Under WordPress v1.5, the nofollow attribute is automatically added to all links in the comments section.</p><p>WordPress comes with a preinstalled antispam solution &#8211; Akismet.</p><p>In order to use Akismet, you should have a WordPress API key. To receive a WordPress API key, you should register at the official WordPress website. The key will be included in your welcome mail.</p><p>If you already have a registration at WordPress.org, you can see your API key by visiting the WP dashboard.</p><p>To enable Akismet for your blog, follow the steps below:</p><p>Step 1. Go to your WordPress admin area &gt; Plugins &gt; Installed.</p><p>Step 2. Click Activate.</p><p>There are many ways to protect your WordPress.com blogs from unwanted comments:</p><p>* WordPress.com blogs are protected by the Akismet comment spam filter.<br
/> * You can control whether comments are automatically approved or if they need to be reviewed before they are published.<br
/> * You can add rules for comment moderation to control which comments get marked as pending.<br
/> * You can add rules to the comment blacklist section to automatically mark some comments as spam.<br
/> * If you turn on email notifications, then you can watch those messages for spam and delete them quickly if you find any that get through the comment spam filter.</p><p>Akismet learns by those who mark comment spam as comment spam and legitimate spam is despammed. If your comments are being caught by Akismet, remove them from the Akismet Panel. It might take two or three times, but it will learn and automatically not designate your comments as spam.</p><p>Commenters on your blog may have their comments caught by Akismet. If you do not regularly check your Akismet Panel, have an easy way of allowing readers to email you if their comment did not appear.</p><p>With updates to the database and major changes to the software, this process may have to be repeated.</p><p>If you continue to have problems with Akismet catching your comments or too many of your readers&#8217; comments, contact Akismet for more assistance.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/14/how-to-protect-spam-comments-in-wordpress/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>How Can I Use the Different Smiley Images in wordpress posts</title><link>http://wordpressapi.com/2010/06/08/how-can-i-use-the-different-smiley-images-in-wordpress-posts/</link> <comments>http://wordpressapi.com/2010/06/08/how-can-i-use-the-different-smiley-images-in-wordpress-posts/#comments</comments> <pubDate>Tue, 08 Jun 2010 17:35:26 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Themes]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress hack]]></category> <category><![CDATA[wordpress tips]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=3137</guid> <description><![CDATA[If you want to use the different smiley image in your wordpress post then you can use following steps: Find your smiley image files in the /wp-includes/images/smilies directory and back them up to another directory Note the names of each smiley file. Your files must match these names and should be in the same &#8216;gif&#8217;.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/wordpress-smiley-1.png"><img
class="alignleft size-medium wp-image-3138" style="margin: 5px 15px" title="wordpress-smiley-1" src="http://wordpressapi.com/files/wordpress-smiley-1-300x298.png" alt="" width="300" height="298" /></a>If you want to use the different smiley image in your wordpress post then you can use following steps:</p><ol><li> Find your smiley image files in the <tt>/wp-includes/images/smilies</tt> directory and back them up to another directory</li><li> Note the names of each smiley file. Your files must match  these names and should be in the same &#8216;gif&#8217; image format.</li><li> For predictable behavior, the image sizes should be similar.</li><li> Upload your new files to the <tt>/wp-includes/images/smilies</tt> directory with an <a
title="FTP Clients" href="http://codex.wordpress.org/FTP_Clients">FTP program</a>.</li></ol><p>If you want to changes the names of smiley and you need to edit wp-includes/functions.php file.</p><p>In that file you will find the &#8220;smilies_init&#8221; function.</p><p>You will find the following code in that file.</p><pre class="brush: php;">

if ( !isset( $wpsmiliestrans ) ) {
 $wpsmiliestrans = array(
 ':mrgreen:' =&gt; 'icon_mrgreen.gif',
 ':neutral:' =&gt; 'icon_neutral.gif',
 ':twisted:' =&gt; 'icon_twisted.gif',
 ':arrow:' =&gt; 'icon_arrow.gif',
 ':shock:' =&gt; 'icon_eek.gif',
 ':smile:' =&gt; 'icon_smile.gif',
 ':???:' =&gt; 'icon_confused.gif',
 ':cool:' =&gt; 'icon_cool.gif',
 ':evil:' =&gt; 'icon_evil.gif',
 ':grin:' =&gt; 'icon_biggrin.gif',
 ':idea:' =&gt; 'icon_idea.gif',
 ':oops:' =&gt; 'icon_redface.gif',
 ':razz:' =&gt; 'icon_razz.gif',
 ':roll:' =&gt; 'icon_rolleyes.gif',
 ':wink:' =&gt; 'icon_wink.gif',
 ':cry:' =&gt; 'icon_cry.gif',
 ':eek:' =&gt; 'icon_surprised.gif',
 ':lol:' =&gt; 'icon_lol.gif',
 ':mad:' =&gt; 'icon_mad.gif',
 ':sad:' =&gt; 'icon_sad.gif',
 '8-)' =&gt; 'icon_cool.gif',
 '8-O' =&gt; 'icon_eek.gif',
 ':-(' =&gt; 'icon_sad.gif',
 ':-)' =&gt; 'icon_smile.gif',
 ':-?' =&gt; 'icon_confused.gif',
 ':-D' =&gt; 'icon_biggrin.gif',
 ':-P' =&gt; 'icon_razz.gif',
 ':-o' =&gt; 'icon_surprised.gif',
 ':-x' =&gt; 'icon_mad.gif',
 ':-|' =&gt; 'icon_neutral.gif',
 ';-)' =&gt; 'icon_wink.gif',
 '8)' =&gt; 'icon_cool.gif',
 '8O' =&gt; 'icon_eek.gif',
 ':(' =&gt; 'icon_sad.gif',
 ':)' =&gt; 'icon_smile.gif',
 ':?' =&gt; 'icon_confused.gif',
 ':D' =&gt; 'icon_biggrin.gif',
 ':P' =&gt; 'icon_razz.gif',
 ':o' =&gt; 'icon_surprised.gif',
 ':x' =&gt; 'icon_mad.gif',
 ':|' =&gt; 'icon_neutral.gif',
 ';)' =&gt; 'icon_wink.gif',
 ':!:' =&gt; 'icon_exclaim.gif',
 ':?:' =&gt; 'icon_question.gif',
 );
</pre><p>You can edit that names as per your requirement and add more smiley.</p><p>If you want to put some css for your smiley then you can use or put following CSS class in your style.css file (Theme folder).</p><pre class="brush: css;">
img.wp-smiley {
   float: none;
   padding:2px;
   border:none;
}
</pre><p>That sit! Have fun.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/08/how-can-i-use-the-different-smiley-images-in-wordpress-posts/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>how to use the update option in wordpress plugin</title><link>http://wordpressapi.com/2010/06/07/how-to-use-the-update-option-in-wordpress-plugin/</link> <comments>http://wordpressapi.com/2010/06/07/how-to-use-the-update-option-in-wordpress-plugin/#comments</comments> <pubDate>Mon, 07 Jun 2010 18:01:55 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Plugins]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress plugin]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=3124</guid> <description><![CDATA[Most of wordpress plugin writer choose the new table for saving data for plugin setting and any setting in wordpress plugin. I recommend to use the update option for saving data in wordpress database. There is ready made option is provided by wordpress to save custom data in there table. Here with very simple code.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/wordpress-array.png"><img
class="alignleft size-full wp-image-3125" style="margin: 5px" title="wordpress-array" src="http://wordpressapi.com/files/wordpress-array.png" alt="" width="160" height="110" /></a>Most of wordpress plugin writer choose the new table for saving data for plugin setting and any setting in wordpress plugin. I recommend to use the update option for saving data in wordpress database.</p><p>There is ready made option is provided by wordpress to save custom data in there table.</p><p>Here with very simple code I will show how use save the data in wordpress database.</p><pre class="brush: php;">
&lt; ?php
$variable = array(‘var1′ =&gt; $_POST['var1'], ‘var2′ =&gt; $_POST['var2']);
update_option(‘myPlugin_var1′, serialize($variable));
get_option(‘myPlugin_var1′) == “” ? “” : $new = unserialize(get_option(‘myPlugin_var1′));
?&gt;

You should save data in simple variable format or I suggest always save data in array format.
</pre><p>For more reference you can check the following URL<br
/> <a
href="http://phpxref.com/xref/wordpress/wp-admin/options.php.source.html">http://phpxref.com/xref/wordpress/wp-admin/options.php.source.html</a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/07/how-to-use-the-update-option-in-wordpress-plugin/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>5 Tips to Improve Your WordPress blog Traffic and look</title><link>http://wordpressapi.com/2010/06/03/5-tips-improve-wordpress-blog-traffic/</link> <comments>http://wordpressapi.com/2010/06/03/5-tips-improve-wordpress-blog-traffic/#comments</comments> <pubDate>Thu, 03 Jun 2010 17:18:22 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Plugins]]></category> <category><![CDATA[Wordpress Themes]]></category> <category><![CDATA[news]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress plugins]]></category> <category><![CDATA[wordpress theme]]></category> <category><![CDATA[wordpress tips]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=2889</guid> <description><![CDATA[WordPress is becoming most popular CMS these days. It is very easy to use and great search engine support. Last year wordpress left behind all the cms. Many people are thinking about how to keep the there wordpress site impressive. In this article I am going tell you the 5 best tips about how to.....]]></description> <content:encoded><![CDATA[<p>WordPress is becoming most popular CMS these days. It is very easy to use and great search engine support.<br
/> Last year wordpress left behind all the cms. Many people are thinking about how to keep the there wordpress site impressive.<br
/> In this article I am going tell you the 5 best tips about how to keep your wordpress blog or website impressive.</p><h2>1. Create a widget controlled footer that keeps visitors busy on site</h2><p><a
href="http://wordpressapi.com/files/footer-wordpressapi.png"><img
class="alignnone size-full wp-image-2893" title="footer-wordpressapi" src="http://wordpressapi.com/files/footer-wordpressapi.png" alt="" width="1013" height="285" /></a></p><p>Widget controlled footer is not new thing in wordpress website but still having footer with multiple information is good.<br
/> You should keep the following footer widget in website.<br
/> 1. Recent posts<br
/> 2. Popular Post<br
/> 3. Recent Comments<br
/> For recent comments you can use following code in footer without plugin</p><pre class="brush: php;">
&lt;?php
 $my_query = new WP_Query('showposts=15');
 while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();$do_not_duplicate = $post-&gt;ID;
?&gt;
</pre><p>For popular post We can use the wp-popular-post plugin. Using that plugin use can use following code in your website</p><pre class="brush: php;">
&lt;?php get_mostpopular(&quot;range=weekly&amp;order_by=views&amp;stats_comments=0&amp;limit=20&quot;); ?&gt;
</pre><p>For showing the Recent comments you can use following code without any wordpress plugin. You can change the css code as per your site layout.</p><pre class="brush: php;">
&lt;?php
$total_comments = $wpdb-&gt;get_results(&quot;SELECT comment_date_gmt, comment_author, comment_ID, comment_post_ID, comment_author_email, comment_content FROM $wpdb-&gt;comments WHERE comment_approved = '1' and comment_type != 'trackback' ORDER BY comment_date_gmt DESC LIMIT 11&quot;);
$comment_total = count($total_comments);
echo '&lt;ul&gt;';
for ($comments = 0; $comments &lt; $comment_total; $comments++) {
echo &quot;&lt;div style='clear:both;width:355px;padding-top:3px;'&gt;&lt;div style='float:left;width:35px;'&gt;&quot;;
echo get_avatar($total_comments[$comments]-&gt;comment_author_email,$size='32',$default='&lt;path_to_url&gt;' );
echo &quot;&lt;/div&gt; &lt;div style='width:320px;'&gt;&quot;;
echo '&lt;li&gt;';
echo $total_comments[$comments]-&gt;comment_author . ' says ';
echo '&lt;a href=&quot;'. get_permalink($total_comments[$comments]-&gt;comment_post_ID) . '#comment-' . $total_comments[$comments]-&gt;comment_ID . '&quot;&gt;';
// echo get_the_title($total_comments[$comments]-&gt;comment_post_ID);
echo $total_comments[$comments]-&gt;comment_content;
echo '&lt;/a&gt;&lt;/li&gt;&lt;/div&gt;&lt;/div&gt;';
}
echo '&lt;/ul&gt;'
?&gt;
</pre><h2>2. Display the interesting images on the homepage</h2><p>You can increase your wordpress site traffic and website will look cool with best custom made images.<br
/> You can use following code for showing the images on homepage.<br
/> First you need to open the functions.php file from your wordpress theme folder and copy paste following code in that file.</p><pre class="brush: php;">
function get_first_image($id) {
$PostID = $id;
$all_images =&amp; get_children('post_type=attachment&amp;post_mime_type=image&amp;post_parent=' . $PostID );

if($all_images) {
$arr_of_all_images = array_keys($all_images);
$firstImage = $arr_of_all_images[0];
$thumb_url = wp_get_attachment_thumb_url($firstImage);
$First_thumb_image = '&lt;a href=&quot;' . get_permalink() . '&quot;&gt;' .
 '&lt;img src=&quot;' . $thumb_url . '&quot; width=&quot;150&quot; height=&quot;150&quot; alt=&quot;Thumbnail Image&quot; title=&quot;Thumbnail Image&quot; /&gt;' .
 '&lt;/a&gt;';
 echo $First_thumb_image;
 }
}
</pre><p>In your index.php file you need to copy paste the following code for showing the image.</p><p>&lt;?php get_first_image($post-&gt;ID);  ?&gt;</p><h2>3. Add social media links to the bottom of post</h2><p>Visitors always want to bookmark the website or your posts.<br
/> So keeping that very simple adding the social media links to your posts is very nice.<br
/> Finding the good social media icons as per your website is very easy with google.</p><p>There are some nice wordpress plugins available for adding the social media icons but recommend not to use any wordpress plugin.<br
/> Or you can use following code.</p><pre class="brush: php;">
&lt;style&gt;
.social_icons{ clear:both; border-top:2px solid #ccc; color:#2266BB; font-size:18px;font-weight:bold;line-height:30px;}
.social_icons ul li {float:left; padding-right:8px;}
&lt;/style&gt;
&lt;div &gt;
Bookmark &amp; Share This Post
&lt;ul&gt;
 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://wordpressapi.com/feed&quot; title=&quot;RSS&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/rss_32.png&quot; title=&quot;RSS&quot; alt=&quot;RSS&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://del.icio.us/post?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;&quot; title=&quot;del.icio.us&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/delicious_32.png&quot; title=&quot;del.icio.us&quot; alt=&quot;del.icio.us&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://www.stumbleupon.com/submit?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;&quot; title=&quot;StumbleUpon&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/stumbleupon_32.png&quot; title=&quot;StumbleUpon&quot; alt=&quot;StumbleUpon&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://digg.com/submit?phase=2&amp;url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;&quot; title=&quot;Digg&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/digg_32.png&quot; title=&quot;Digg&quot; alt=&quot;Digg&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://twitthis.com/twit?url=&lt;?php the_permalink() ?&gt;&quot; title=&quot;TwitThis&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/twitter_32.png&quot; title=&quot;TwitThis&quot; alt=&quot;TwitThis&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;

 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://www.mixx.com/submit?page_url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;&quot; title=&quot;Mixx&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/mixx_32.png&quot; title=&quot;Mixx&quot; alt=&quot;Mixx&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://technorati.com/faves?add=&lt;?php the_permalink() ?&gt;&quot; title=&quot;Technorati&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/technorati_32.png&quot; title=&quot;Technorati&quot; alt=&quot;Technorati&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://www.facebook.com/sharer.php?u=&lt;?php the_permalink() ?&gt;&amp;t=&lt;?php echo urlencode(the_title('','', false)) ?&gt;&quot; title=&quot;Facebook&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/facebook_32.png&quot; title=&quot;Facebook&quot; alt=&quot;Facebook&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://www.newsvine.com/_tools/seed&amp;save?u=&lt;?php the_permalink() ?&gt;&amp;h=&lt;?php echo urlencode(the_title('','', false)) ?&gt;&quot; title=&quot;NewsVine&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/newsvine_32.png&quot; title=&quot;NewsVine&quot; alt=&quot;NewsVine&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://reddit.com/submit?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;&quot; title=&quot;Reddit&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/reddit_32.png&quot; title=&quot;Reddit&quot; alt=&quot;Reddit&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;&quot; title=&quot;Google&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/google_32.png&quot; title=&quot;Google&quot; alt=&quot;Google&quot; /&gt;&lt;/a&gt;&lt;/li&gt;

 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://myweb2.search.yahoo.com/myresults/bookmarklet?u=&lt;?php the_permalink() ?&gt;&amp;=&lt;?php echo urlencode(the_title('','', false)) ?&gt;&quot; title=&quot;YahooMyWeb&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/yahoobuzz_32.png&quot; title=&quot;YahooMyWeb&quot; alt=&quot;YahooMyWeb&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;

 &lt;li&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;mailto:?subject=&lt;?php echo urlencode(the_title('','', false)) ?&gt;&amp;body=&lt;?php the_permalink() ?&gt;&quot; title=&quot;E-mail this story to a friend!&quot;&gt;&lt;img src=&quot;http://wordpressapi.com/files/email_32.png&quot; title=&quot;E-mail this story to a friend!&quot; alt=&quot;E-mail this story to a friend!&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/div&gt;
</pre><h2>4. Install the Tweetmeme style Twitter button to your posts</h2><p>Twitter is very popular these days. Twitter is micro blogging website.<br
/> So many people want to share there articles with twitter and Many visitors want to share article with there friends and follower by tweeting the article.<br
/> I recommend to use the tweetmeme wordpress plugin for putting the Twitter button to your posts.</p><p>You can download the tweetmeme wordpress plugin from following URL</p><p>http://tweetmeme.com</p><h2>5. Always show the Author information with photo</h2><p>Many visitors want to know about author. Keeping Author&#8217;s information on wordpress website is really good idea.<br
/> That will become your website more interesting the user friendly to visitors.<br
/> Some people like the specific writing style of author and They want know more information about Author.</p><p>In wordpress keeping the users photo and information I will suggest to use the user-photo wordpress plugin.</p><p>http://wordpress.org/extend/plugins/user-photo/</p><p>After adding following plugin you can use following code in your wordpress posts.</p><pre class="brush: php;">
&lt;?php userphoto_the_author_photo(); ?&gt;
</pre>]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/03/5-tips-improve-wordpress-blog-traffic/feed/</wfw:commentRss> <slash:comments>40</slash:comments> </item> <item><title>how to add text before footer in wordpress</title><link>http://wordpressapi.com/2010/05/10/add-text-footer-wordpress/</link> <comments>http://wordpressapi.com/2010/05/10/add-text-footer-wordpress/#comments</comments> <pubDate>Mon, 10 May 2010 16:24:03 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Themes]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=2218</guid> <description><![CDATA[You can add the your custom text before the footer area. Using wordpress api you can easily achieve this. In this article I will show you how to add the text before footer area in wordpress. First Open your functions.php file from your wordpress theme and use following code in the functions.php function custom_footer() {.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/Wordpressapi.com-Developer-Code-book_1273508841515.png"><img
class="alignnone size-medium wp-image-2223" title="Wordpressapi.com - Developer Code book_1273508841515" src="http://wordpressapi.com/files/Wordpressapi.com-Developer-Code-book_1273508841515-300x87.png" alt="" width="300" height="87" /></a>You can add the your custom text before the footer area. Using wordpress api you can easily achieve this. In this article I will show you how to add the text before footer area in wordpress.</p><p>First Open your functions.php file from your wordpress theme and use following code in the functions.php</p><pre class="brush: php;">

function custom_footer() {
 $content = '&lt;div id=&quot;custom_footer&quot;&gt;this is your custom function or text&lt;/div&gt;';
 echo $content;
}
add_action('wp_footer', 'custom_footer');
</pre><p>Then open your footer.php file from wordpress theme folder and put following code in footer where you want to show your custom text or function.</p><pre class="brush: php;">

&lt;?php wp_footer(); ?&gt;
</pre>]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/05/10/add-text-footer-wordpress/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>how to change wordpress post order category wise</title><link>http://wordpressapi.com/2010/05/01/change-wordpress-post-order-category-wise/</link> <comments>http://wordpressapi.com/2010/05/01/change-wordpress-post-order-category-wise/#comments</comments> <pubDate>Sat, 01 May 2010 07:05:39 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=2066</guid> <description><![CDATA[When we need to re-arrange my recent post in wordpress so they go Ascending/Descending order category wise. We can easily achieve this using wordpress api. use following code: &#60;?php //The Query query_posts('cat=1,3,3&#38;posts_per_page=15&#38;order=ASC'); //The Loop if ( have_posts() ) : while ( have_posts() ) : the_post(); .. endwhile; else: .. endif; ?&#62;]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/wordpress-category.png"><img
src="http://wordpressapi.com/files/wordpress-category.png" alt="" title="wordpress-category" width="323" height="345" class="alignnone size-full wp-image-2068" /></a>When we need to re-arrange my recent post in wordpress so they go Ascending/Descending order category wise. We can easily achieve this using wordpress api.</p><p>use following code:</p><pre class="brush: php;">

&lt;?php

//The Query
query_posts('cat=1,3,3&amp;posts_per_page=15&amp;order=ASC');

//The Loop
if ( have_posts() ) : while ( have_posts() ) : the_post();
 ..
endwhile; else:
 ..
endif;

?&gt;
</pre>]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/05/01/change-wordpress-post-order-category-wise/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>how to add thank you message after comments wordpress</title><link>http://wordpressapi.com/2010/04/11/add-message-comments-wordpress/</link> <comments>http://wordpressapi.com/2010/04/11/add-message-comments-wordpress/#comments</comments> <pubDate>Sun, 11 Apr 2010 07:02:12 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Themes]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=2031</guid> <description><![CDATA[Many times we got requirement to add thank you message after adding comments added by users. In this article I will show how to add custom message after getting comments from users. For this we going use the wordpress api. WordPress filters are very useful. You can find all wordpress hooks and filters in wp-includes/default-filters.php.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/Thank-you.jpg"><img
src="http://wordpressapi.com/files/Thank-you.jpg" alt="" title="Thank-you" width="290" height="267" class="alignnone size-full wp-image-2032" /></a>Many times we got requirement to add thank you message after adding comments added by users.</p><p>In this article I will show how to add custom message after getting comments from users. For this we going use the wordpress api. WordPress filters are very useful. You can find all wordpress hooks and filters in wp-includes/default-filters.php file.</p><p>Open your functions.php file from your active wordpress theme folder. copy paste the following code in that file.</p><p><pre class="brush: php;">&lt;/p&gt;
&lt;p&gt;function add_custom_text($content) {&lt;/p&gt;
&lt;p&gt;    return &quot;&lt;/p&gt;
&lt;div class=\&quot;custom-text\&quot;&gt;
&lt;p&gt;Hello User!&lt;/p&gt;
&lt;p&gt;Thank you for your comment.&lt;/p&gt;
&lt;p&gt;Wordpressapi&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&quot;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;add_filter('comment_text', 'add_custom_text', 1000);&lt;/p&gt;
&lt;p&gt;</pre></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/04/11/add-message-comments-wordpress/feed/</wfw:commentRss> <slash:comments>15</slash:comments> </item> <item><title>how to change or create the favicon in wordpress</title><link>http://wordpressapi.com/2010/04/05/change-create-favicon-wordpress/</link> <comments>http://wordpressapi.com/2010/04/05/change-create-favicon-wordpress/#comments</comments> <pubDate>Mon, 05 Apr 2010 18:32:09 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Themes]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=2018</guid> <description><![CDATA[If you want add the favicon image in your wordpress website that is really easy. First use any photo editing tool like photoshop or gimp for creating the favicon image. To create the favicon image you should follow following rules By cropping or adding space around the image, make the image square. Resize the image.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/favicons.gif"><img
class="alignleft size-full wp-image-2019" style="margin: 5px" title="favicons" src="http://wordpressapi.com/files/favicons.gif" alt="" width="205" height="181" /></a>If you want add the favicon image in your wordpress website that is really easy.</p><p>First use any photo editing tool like photoshop or gimp for creating the favicon image.</p><p>To create the favicon image you should follow following rules</p><ol><li> By cropping or adding space around the image, make the image  square.</li><li> Resize the image to 16 x 16 pixels.</li><li> Save the file as <tt>favicon.ico</tt></li></ol><p>Open your active wordpress theme and put favicon.ico image file in that folder or using ftp client you can put favicon.ico file in theme folder. After coping the favicon image file in theme folder. Open your header.php file from wordpress theme folder. and Put following code in that file.</p><pre>&lt;link rel="shortcut icon" href="&lt;?php bloginfo('template_directory'); ?&gt;/favicon.ico" /&gt;
</pre><p>Dont forget to put above code under head tag. Now your are set and changed the favicon from your wordpress site. To see the new favicon image you should clear your browser cache.</p><p>Or you can use ctrl+f5 button.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/04/05/change-create-favicon-wordpress/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>How to change background for specific page and category in wordpress</title><link>http://wordpressapi.com/2010/04/05/change-background-specific-page-category-wordpress/</link> <comments>http://wordpressapi.com/2010/04/05/change-background-specific-page-category-wordpress/#comments</comments> <pubDate>Mon, 05 Apr 2010 18:06:44 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Wordpress Themes]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress api]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tutorials]]></category> <category><![CDATA[wordpress hack]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=2015</guid> <description><![CDATA[Many times clients demands for different background color or different images as a background. We can very easily achieve this using wordpress conditional tags. You can use following code in your page.php or category.php file which is present in wordpress theme. If you want to change the background for specific page then open page.php file.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/wordpress-background-colors.jpg"><img
class="alignnone size-full wp-image-2016" title="wordpress-background-colors" src="http://wordpressapi.com/files/wordpress-background-colors.jpg" alt="" width="500" height="274" /></a></p><p>Many times clients demands for different background color or different images as a background. We can very easily achieve this using wordpress conditional tags.</p><p>You can use following code in your page.php or category.php file which is present in wordpress theme. If you want to change the background for specific page then open page.php file from theme folder.</p><pre class="brush: php;">

&lt;body &lt;?php if(is_page('contact us'))  echo 'class=&quot;contact_us&quot;';?&gt;&gt;
</pre><p>Use following css code in your style.css file</p><pre class="brush: css;">

.contact_us{

.background-color:#ccc;

}

.php_category{

.background-color:#181818;

}

If you want to use different background for your category then use following code.

[php]

&lt;body &lt;?php if(is_category('php''))  echo  'class=&quot;php_category&quot;';?&gt;&gt;
</pre>]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/04/05/change-background-specific-page-category-wordpress/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 136/223 queries in 1.149 seconds using disk

Served from: wordpressapi.com @ 2010-09-07 14:26:54 -->