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.

7 thoughts on “WordPress QuickTips

  1. I am not sure you want to “save keystrokes” with that little trick for images, correct me if I am wrong, but what that call the database every time it runs, slowing down your site?

  2. Pingback: - Wordpress Help - September - 2008 zulsdesign studio: blog accessories, blog templates, desain, graphic design, flash, portofolio, lyric

  3. Pingback: 25+ Essential Articles For Every WordPress Beginner :: Elite By Design

  4. Pingback: Added by a PAL to FAQ PAL

Comments are closed.