Blog Categories

Archive for the ‘Wordpress’ Category

Adding Microformats to The Events Calendar

So I have been thinking about adding Microformats to a local Darwin Events and lifestyle WordPress website I run, but never got round to implementing them. That was until I got some inspiration from the Darwin Web Standards crew at a DWS meetup group session about Microformats and their use in semantic markup.

Major props should also go to Richard Baxter for his post, Mark-up Your Events Online with Microformats as his article gave me all the info I needed to implement microformats using The Events Calendar WordPress plugin. I would highly recommend reading Richard’s article as it explains with I am doing below with find and replace.

It is very easy to add hcalendar microformats to The Events Calendar!
All you need to do is make some minor edits to single.php (The Events Calendar version, not your WordPress theme version). Below I have simply given code to find and then replace in single.php. Leave a comment if you need further clarification.

Find:

<div id="tec-event-meta">

Replace with:

<div id="tec-event-meta" class="vevent">
	<a class="url summary" style="display: none;" href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br />

Note, I have used display:none because my titles are generated out of the functions.php file. You may just need to add class=”url summary” to your standard post title.

Find:

<dd><?php echo the_event_start_date(); ?></dd>

Replace with:

<dd>
    <span class="dtstart"><br />
        <span class="value-title" title="<?php echo the_event_start_date(); ?>"><br />
            <?php echo the_event_start_date(); ?><br />
        </span><br />
    </span>
</dd>

Find:

<dd><?php echo the_event_end_date();  ?></dd>

Replace with:

<dd>
    <span class="dtend"><br />
        <span class="value-title" title="<?php echo the_event_end_date();  ?>"><br />
       		<?php echo the_event_end_date();  ?><br />
        </span><br />
    </span>
</dd>

Find:

<dd><?php echo the_event_venue(); ?></dd>

Replace with:

<dd>
    <span class="fn org"><?php echo the_event_venue(); ?></span>
</dd>

Find:

<dd>
	<?php tec_event_address( $post->ID ); ?>
</dd>

Replace with:

<dd>
    <span class="adr"><br />
       <span class="street-address"><?php echo the_event_address( $post->ID ); ?></span>,<br />
       <span class="locality"><?php echo the_event_city( $post->ID ); ?></span>,<br />
       <span class="region"><?php echo the_event_state( $post->ID ); ?></span><br />
    </span>
</dd>

That’s it!!! Pretty easy huh?!

You can test your microformats with Google’s Rich Snippets Testing Tool.

Here is a direct link to a test of one of my Darwin Event pages.

For those wonderful little rich snippets to appear under your results in the serps, you will need to request this from Google using this form.

Changing Your WordPress User Password

WordPress security should be at the top of every webmaster’s list, especially with the number of hackers looking for easy ways to inject their spam into your website.

One part of the overall security of your WordPress site is to change your password regularly, preferably monthly. You should also use a complex password with UPPER CASE, lower case, numbers and punctuation. Here is a strong password tool by PC Tools and Lifehacker has a great post on choosing secure, memorable passwords.

Here are the steps to changing your WordPress User password:

1 – Login to your WordPress Dashboard

2 – In the sidebar menu, click Users –> Your Profile

Your Profile

Go to Users --> Your Profile

3 – Once your profile page loads, scroll to the bottom of the screen. You will see a box to enter new password.

4 – Enter your new password, ensuring it the box below is green and says strong. If it does not say strong, choose a more complex password. You will then need to reenter the password in the box below.

Enter Password

Enter password and ensure it is Strong

5 – Click the blue Update Profile button to save your new password.

6 – Do this monthly!

Add Nextgen Gallery to an Album

This tutorial will show you how to add a Gallery created with Nextgen Gallery Plugin to a Pre-created Album. To complete this you will need to have pre-created both the album and the gallery using the Nextgen Gallery Plugin. Read the rest of this entry »

Add A New Nextgen Gallery to WordPress

This tutorial will explain how to add a new gallery using the Nextgen Gallery Plugin and insert that new gallery into a page.

Read the rest of this entry »

How to Add New Images to Nextgen Gallery

This tutorial will show you how to add images to a Nextgen Gallery that has already been created. Read the rest of this entry »

Edit Gallery Details and Custom Fields in Nextgen Gallery

This tutorial will show you how to edit the gallery details and preset custom fields (price, artist, size etc). Read the rest of this entry »

Create a New WordPress Page

This page will show you how to create a new page in WordPress. It also shows you how to add the basic information into your Headspace Search Engine Optimization tool. Read the rest of this entry »

Create Link in WordPress

This tutorial will show you how to make a link in WordPress content management system. Read the rest of this entry »