
There are so many reasons to use Wordpress as a major software for common websites (even semi-advanced ones!), not only for standard blogs. From time to time I do share some Wordpress stuff on my blog, so this time you’ve got two tips written in short ‘coz I’m still tied up:
Simply better sindication:
If you do use Wordpress only for standard weblog, probably you don’t need it. But when you install Wordpress in order to achive more ambitious goals website, RSS feed for blog posts & comments is just a boring standard. If there’s an opportunity to get more subscribers by providing feeds for particular categories, why don’t you use it? At least it could give a little bit more professional look like for your sites
Respective categories: http://example.com/category/category-name/feed/
Tags: http://example.wordpress.com/tag/tag-category-name/feed/
How to display number of all comments on your Wordpress blog
Second tip might be useful especially for show off artists. There’s a piece of PHP code:
<?php function CmtCnt($a=false) { global $wpdb; $s = "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'"; if ($a) { $s .= " AND comment_post_ID=$a"; } print $wpdb->get_var($s); } ?>
And there’s a smaller piece of PHP that makes the number appears.
<?php CmtCnt(); ?>
By the way I’ve got a question - any idea how to fix its multi-user functionality? Seems my skills are still to poor to get “Write New Post” page styled & listed apart from the Wordpress Dashboard…
UPDATE:
How to display number of all posts on your Wordpress blog:
Another tip for show off artists, inspired by Marc. There’s the code code of appropriate PHP function:
<?php function PstCnt() { global $wpdb; echo $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '" . gmdate("Y-m-d H:i:s",time()) . "'"); } ?>
And there’s the code that makes the ball rolling and show the number of all posts within your Wordpress:
<?php PstCnt(); ?>
Please note that you can use all these solutions easily within your writings, it’s enough to install Run PHP plugin.



August 18th, 2007 #
I would like to edit the write new post page too. Since the inbuild WYSIWYG editor is terrible I want to add my own custom editor to the page.
Why not put up the code to display the total number of posts also?
August 18th, 2007 #
I’ve just found these two plugins (Create N Place & Edit N Place), seems they might be pretty useful.
Thanks a bunch for a notice, I’ve updated this entry
August 21st, 2007 #
I ran into a problem. I wanted to put the number of comments and posts in widgets but widgets can’t run PHP code so I have to install the PHP widgets plugin. I do have it installed already but it seems such a roundabout method.
August 21st, 2007 #
Widgets are generally designed for not advanced users, they are getting on your nerves every time you want to play with, I just don’t use them
I recommend adding appropriate PHP code to functions file of your WP theme and call it manually within the sidebar or wherever you need…
August 23rd, 2007 #
The only reason I have widgets turned on is because they remain unchanged across themes. Otherwise maintaining my sidebar becomes very very messy for each individual theme since I keep editing it often.
August 23rd, 2007 #
You’re right, it might be the only one good reason to use widgets indeed!