Category Archives: WordPress

Tips and tutorial on WordPress.

Align right WordPress avatar image in comments

Paste this code inside style.css file, to align right the avatar image in WordPress. img.avatar { float:right; margin:0 0 0 10px; padding:3px; } If you are new here, you might want to subscribe to the RSS feed or newsletter. Enter … Continue reading

Posted in WordPress | Tagged , | Leave a comment

Remove WordPress generator

To remove WordPress generator, append this code to function.php: Method 1: This method will not work on WordPress 2.8. function remove_generator() {     return ”; } add_filter(‘the_generator’,'remove_generator’); Mehod 2: This method will work on WordPress 2.8. <?php remove_action(‘wp_head’, ‘wp_generator’); ?> … Continue reading

Posted in WordPress | Tagged , , | 3 Comments

Show all posts in a category in the Archives page

Dump this code in the Archives template before the loop. <?php global $wp_query;   query_posts(     array_merge(     array(‘showposts’ => -1),     array(‘offset’=>1),     $wp_query->query   ) ); ?> If you are new here, you might want to subscribe to … Continue reading

Posted in WordPress | Tagged , , | Leave a comment

XML Sitemap Generator for WordPress: Error loading stylesheet

How to solve stylesheet loading error for XML sitemap file generated by XML Sitemap Generator for WordPress plugin. Continue reading

Posted in WordPress | Tagged , , , | 6 Comments

Valid ampersand when writing URLs in HTML

Always use &amp; in place of & when writing URLs in HTML. Example of invalid ampersand for URL in HTML: <a href=”test.php?var1=3&var2=6&var3=10″>…</a> The correct usage: <a href=”test.php?var1=3&amp;var2=6&amp;var3=10″>…</a> To validate for markup, please use W3C Markup Validator. If you are new … Continue reading

Posted in WordPress | Tagged , , , | Leave a comment