WordPress QuickTips
Here’s a little snippet of code that could come in handy: a total post count for a blog. Put this in your page to display the total amount of posts you’ve made:
<php the_author_posts(); ?>
This might come in handy when you’d like to display the total number of tutorials on a tutorial blog, sites indexed in a site gallery, etc.
Here’s another WordPress QuickTip that will save you some extra keystrokes. Whenever you want to link to an image, place in your site, etc, this little PHP snippet will save you the hassle of typing in the web address:
<?php echo(get_option('siteurl')); ?>
This will display the complete URL (http://www.yoursite.com) wherever you put this tag.







