How to add featured image thumbnails to WordPress posts and pages, the easy way

Since WordPress version 2.9, featured images (formerly known as "post thumbnails") are integrated in the Write Post and Write Page panel. Not all WordPress themes make use of these fields, and a change to your template files is required.

In this post I will explain how you can add Featured Images to your posts and pages with only a modification to your functions.php file, and some basic styling using css. This is in particular useful when you have multiple Page templates, and therefore need to update several files to incorporate the featured images in each page.

(more…)

How to replace text links with icon links in WP 3 navigation menus

The new WordPress 3 navigation menus are an excellent tool to design your own menus, mixing pages, categories and custom links. iThemes created video tutorials on how to use the new WordPress navigation in Builder and Flexx theme. The following tutorial will show how you can replace the text links in the navigation menu with images. It can be used for any theme, on any WordPress site running WordPress 3+, but it is based on iThemes Flexx.

(more…)

How to retrieve a menu item ID from WP 3 navigation menus

For an upcoming tutorial on the new menu system in WordPress 3, we need to identify each menu item, so that we can address that in our stylesheet. That way, we can add specific styling to a single menu item, which may be useful if you want to use images or icons in the menu in stead of text links. I haven't found an easier solution (other than inspecting your site's html source code once the menu is published), but I would love to get your input.

(more…)

How to register and list users based on user roles in WordPress

The idea for this came from a request, where the customer wanted to allow users to register online, and then allow these users to be able to view a list of all other users that have registered. Regular site members, such as subscribers, editors, authors or contributors however should NOT be included, and neither should these (standard WordPress roles) have access to the page that lists these "special" users.

(more…)