How to Quickly Add Breadcrumbs in Thesis

On one of my WordPress and Thesis powered websites I wanted breadcrumbs to help visitors navigate. I felt this was especially important because the site is a traditional website using pages, rather than a blog using posts.

I quickly discovered the Breadcrumb NavXT plugin which cleanly did exactly what I wanted, including integrating with themes by adding a function. I downloaded and installed the plugin. I customized the settings in the site’s dashboard then moved on to the final step: integrating the plugin with Thesis.

Here’s how to add a function to Thesis to make the breadcrumbs appear below the header.
[Read more…]

How to Display Content Based on WishList Member Level

I created a PHP function for my GenealogyTools.com blog last night. It may save you some time if you want to control what content displays for different WishList Member member levels.

I use the Thesis theme, so I added the function to custom_functions.php and use it for an after post hook and to control the display of sidebar widgets.

Here’s the function:


function is_user_premium_member() {
$user = wp_get_current_user();
$levels = WLMAPI::GetUserLevels($user->ID);
if(in_array('Premium', $levels)) {
return true;
}
else {
return false;
}
}

This function determines whether the user is in the Premium membership level. You can make it check for a level with different name by changing the value ‘Premium’ to whatever your membership level is (e.g. ‘Gold’).

Once you have the function saved, you can use it in the “Conditional” text box of a widget. To exclude the widget for the membership level, enter: !is_user_premium_member(). To only display it for the membership level, leave off the exclamation point: is_user_premium_member().

Similarly, you can use the function within a hook like I have in the following example of an a single post advertisement hook:

/* Ad after single posts */
function single_post_ads() {
if (is_single()) {
if(!is_user_premium_member()) { ?>

// Put what you want to display for non-premium members here

In this case, taking out the exclamation point will make the ad display only for premium members.

Three Little Words

I’m going to do something different starting today. It’s uncomfortable. And it’s in complete alignment with one of my big 5 for life, which I wrote this morning.

Before I die I want to: experience all children growing while showered with love and free from coersion.

This is a big one! It applies to all childern too—even the one inside you and me.

I thought about how to achieve this while driving to work this morning. I imagined being in our world when this is reality. I knew that I would be different in many ways. One of these I commit to starting now.

I saw myself telling each person I encountered that I love them; to contribute to showering them with love.

I don’t mean the empty, mechanical, “I love you” so often encountered. I saw and sensed an authentic “I love you” that was felt by the recipient too. I imagined how joyous I would feel if others did the same for me and wanted all the more to do this little kindness for everyone.

Later, I reflected on the vision and felt uncomfortable. I knew from that discomfort that it was something I had to do.

I’m making this part of my loving-kindness practice: I will give these three little words to each person I encounter every day. I will push past the discomfort. I will mean it. I will experience my dream as reality.

I love you.