Skeletize, Nakedize, Visualize and Sexydize Your Tag Display

Mac users always boast about the cool, sleek and sexy UI of OS X, Applications and everything else on their computers. Well, this is not limited to just one platform if you’re on the web. Everybody can design, display whatever they like in whichever way they feel best.

Read more…

Stylesheet Directory Link Tag

One difficulty of designing WordPress themes you plan to let others use, is linking to images within the template directory (where the stylesheet is). Fortunately, WordPress provides a tag for doing just that.

<?php echo(get_bloginfo('template_directory')); ?>

/images/ is the images folder inside your theme folder. You can link to a page in that folder (comments.php) or something inside the images folder:

<img src="<?php echo(get_bloginfo('template_directory')); ?>/images/rss_icon.gif" alt="" />

We can make linking to an image even easier:

<?php
$bloginfo_link = get_bloginfo('template_directory');
$image_link = $bloginfo_link . '/images';
?>

<img src="<?php echo $image_link; ?>/rss_icon.gif" alt="" />

We assign the template directory path to the variable $bloginfo_link and then put the directory path and the image folder path together.

Tutorial: Content For Admin Only

For a couple of days now, I’ve being wondering how to display something only for the admin to see, when the admin is logged in. This could come in handy to display links to the WP admin panel or stats page.

So I did a bit of research and I found exactly what I was looking for:

<?php global $user_ID; if( $user_ID ) : ?>
<?php if( current_user_can('level_10') ) : ?>

<a href="http://yourdomainurl.com/stats/">Stats</a>

<?php else : ?>
<?php endif; ?>
<?php endif; ?>

The code above will display “Stats” with a link to a stats page, but only for the admin, when the admin is logged on.

You can modify the code above to display links only for certain types of users, such as Contributors, Authors, Editors, etc, by changing the “level_10“. Read more about WordPress Roles and Capabilities here.

This is just a quick little tutorial I wanted to share with you guys! Enjoy. Oh and if you know of any other ways to use this tutorial, please share!

The Advanced WordPress Help Sheet

About a month ago, WPCandy released The WordPress Help Sheet, a PDF packed with PHP snippets, the basic template files, and other extra stuff for WordPress. It became pretty popular around the Blogosphere within a couple of days and was translated into quite a few languages. The WordPress Help Sheet was a great success and allowed WPCandy to become known to the rest of the world.

The WordPress Help Sheet was a good WordPress resource, but it was pretty limited and only had the basics of WordPress. I kept thinking to my self, “What about more advanced WordPress developers? They need something too!”. I felt they were being left out of all the fun. So here’s something for all you WordPress gurus…

Read more…

Creating an “About this Author” for Multiple Authors

Hey what’s up everyone, I am a contributing writer here at WPCandy.com for a couple of posts. My name is Patrick Algrim and I am the owner of hellyeahdude.com, I am sure you have heard Michael Castilla talk about our Web site before. Well, I am here to share with you a great trick to help improve your network. Creating an “About this Author” portion for your Web site is much easier than you may think!

Read more…

TAGStention for WordPress Users

In the beginning there was the brain. The brain remembered all the code from the WordPress codex needed to create a WordPress theme Then the brain was over taken over by the much easier and simpler WPCandy WordPress Reference Guide where your brain would only have to apply the copy and paste command.
Now your brain is about to become much more lazier. How, you ask. Well thats where TAGStention comes in.


Read more…