The easiest way to display ‘Home’ as a navigation link, Period.

Here is the easiest way to display a homepage link in the navigation bar of your WordPress site. I can guarantee that you won’t find an easier way out there.

The code:

<ul>
<li<?php if ( is_home() ) { ?> class="current_page_item"<? } ?>><a href="<?php get_option('home'); ?>">Home</a></li>
<?php wp_list_pages('title_li='); ?>
</ul>

It’s pretty obvious how this code works. If the current page is the blog’s homepage, then it’ll add a special class to the list item to mark it as the current page. If it isn’t, the navigation button displays normally.

That’s it. No extra pages, no special configuration. The easiest way to display ‘Home‘ as a navigation link, period.

Setup WordPress Locally On Mac OS X

When designing WordPress themes, it’s nice to be able to store them locally to test them instead of uploading files to a web server (though Transmit makes it quite easy). In this tutorial, you’ll learn how to set up WordPress locally on your Mac and then manage multiple blogs with their own themes.

Read more…

WordPress Tutorials Collection

Dan Philibin, previous owner of WPCustomization, has donated his collection of WordPress tutorials from the site’s blog that he pulled prior to the sale. This collection includes tutorials, quick tips, and tricks for WordPress.

I’ll be publishing these tutorials slowlythroughout the next few days so stay tuned and enjoy.

Oh and a big thanks to Dan!

WP Easy Admin Plugin

A couple of days ago I wrote a tutorial on how to display content for only the admin to see. I kept thinking a bit more about what else I could do with this WordPress trick and I ended up creating the WP Easy Admin plugin. I’m no PHP guru, and I’ve never made a WordPress plugin before, so go easy on me!

Read more…

Socialize Me! Plugin

Socialize Me is a new WordPress plugin created by Wayne Smallman that lets your readers connect to you easily. Socialize Me detects the referring page, and if it finds that the referring page is from a social network, such as Twitter, it’ll display a link to your profile on that network.

Read more…

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!

“Big Boys” On WordPress

There are tons of people using WordPress. And I mean tons. Just alone this month, over 8,811 WordPress.com users have signed up and over 8,648 WordPress.com blogs have been created. That’s not even counting self-hosted WordPress blogs/sites!

The majority of people using WordPress, are using it as a blog, but there are also a lot of other sites using WordPress for marketplaces, galleries, portfolios, and even contest systems.

Among the tons of WordPress powered sites, there are quite a few “big boys” who also use WordPress.

Read more…

WordPress Post Switcher Plugin

Hey everyone, my name is Dan, and I’d like to announce my latest (and first) WordPress plugin, the WordPress Post Switcher plugin. (That isn’t really its official name, I just couldn’t think of one.) It’s a really easy to use plugin that puts a sweet post switcher box on your homepage. Users can flip through recent posts by clicking thumbnails. To view a live demo, download, and read more about this plugin, visit my site. I hope to be back here soon to write more stuff about WordPress for this awesome site. Thanks!

- Dan Philibin