• 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.

    Post Revisions:

    Posted February 12, 2008

4 comments

  1. Thássius V. said:

    Talking about the second tip, if your WordPress is installed in the root folder, you just need to put “/whateveryouwant”.

    For example:
    Homepage

    on February 13, 2008 at 12:11 am Reply

  2. shane said:

    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?

    on February 13, 2008 at 10:29 am Reply

  3. Alain said:

    For the second tip… you can just do:

    <?php bloginfo(‘url’); ?>

    on February 13, 2008 at 5:51 pm Reply

  4. Lordo said:

    Nice post. Thank you for sharing that.

    on February 21, 2008 at 2:36 pm Reply


RSS feed for comments on this post.

Leave a comment

Trackbacks on this post

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

    [...] Post-Install Checklist SEO For WordPress : Part 1 How To Setup WordPress Locally On Windows WordPress Quick Tips Tutorial : Content For Admin Only 4 Simple Ways To Speed Up WordPress The WordPress Help Sheet The [...]

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

    [...] WordPress Quick Tips . . [...]

  3. Added by a PAL to FAQ PAL

    WordPress QuickTips…

    A couple of handy snippets for use on your WordPress blog….

TrackBack URL