Friday, July 23, 2010
Trick for displaying Number of Comments in your WordPress Blog
Place below code where you want to display your comment count:
<?php
$numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
if (0 < $numcomms) $numcomms = number_format($numcomms);
echo "There's ".$numcomms." total comments on my blog";
?>Wednesday, July 21, 2010
Thursday, July 15, 2010
A set of must have Cheat Sheets for Web Developers / Designers
HTML Cheat Sheets
HTML Character Entities Cheat Sheet
JAVA Scripts Cheat Sheets and JQuery
W3C – Cascading Style Sheets, Current Work
CSS Cheat Sheet
HTML Character Entities Cheat Sheet
SQL Cheat Sheet
Search Engine Optimization Cheat Sheets
Web Developer's SEO Cheat Sheet
Subscribe to:
Comments (Atom)
Popular Posts
-
Some times when you connect to the webhost via FileZilla you may encounter this error message. "421 Sorry, cleartext sessions are ...
-
HTML Cheat Sheets HTML 5 Visual Cheat Sheet HTML5 Canvas Cheat Sheet HTML Cheat Sheet HTML Elements and Attributes HTML 5 Cheat Sheet HTML C...
-
Underline your links . Readers expect links to be underlined, so don’t disappoint. Use appropriate space between lines in a paragraph . A qu...
-
1. The Menu menu This another great CSS menu Stu Nicholls that’s unique – hovering over a menu item reveals a submenu. If you want get...
-
define( 'WPCF7_AUTOP', false ); Add the above tag in wp-config.php file It will remove all the auto-generated p tags from 'C...
-
Here is the working script for PHP Mailer in GoDaddy Hosting, include("includes/class.phpmailer.php"); date_default_timez...
-
1. TinyMCE TinyMCE is an open source (under the GNU Lesser General Public License ) rich-text editor released and maintained by Moxiecode...
-
Wordpress WP E-Commerce Plugin, There is a widget called Product Category Widget which lists all the product categories. During the site d...
-
GitHub Link: https://github.com/aravindnc/A-to-Z-List-of-Useful-Node.js-Modules Use Ctrl + F or command + F to search for a module. ...
-
1. Include a Tagline A tagline is a statement or a motto that represents a company’s, or in our case a website’s, philosophy and mission. It...