Author Archive for Matt

Extend Wordpress Part 1 - Custom Fields

One of the challenges with running Wordpress as a CMS (per my previous post) is being able to extend the core features to accomplish the goals for your site. These next series of articles will examine how to get more out of Wordpress than you had ever thought possible. For example purposes, we are going to create a Real Estate site powered by Wordpress 2.1.3. Lets get started…

  1. Write » Posts » and then enter a title… “Two Bedroom Ranch with a View”
  2. You might also want to add a new category called “Listings” if you haven’t already.
  3. In the post box, add a description about your property, upload some photos etc.
  4. Enter a new key… “Price” and a value… ” $150,000″ » click Add Custom Field
  5. Repeat Step 4 for each value. For example, you might want to add Agent, Status, Beds, Baths etc. Then publish your post when you’re done.

Tip: Every time you add custom field (key), it will appear in the dropdown box the next time you add a post/listing. You don’t need to type it in again!

Wordpress

 

Now all we need to do is get the information to display on your site. I have made available a modified version of the default theme in wordpress. Simply download this theme, extract the files, upload it to your wordpress themes directory and activate it. It’s called ‘Wordpress Default 2′.

Keep checking back as future articles will discuss how to make these custom fields more visually appealing both in your admin and on your live site.

Move on to Part 2 - Admin.

Sync with Yahoo

YahooYahoo has an interesting application for mobile phones called Yahoo! Go. Install Yahoo Go on your mobile phone and it will sync your contacts between your phone and Yahoo Mail. Whether you’re adding contacts online or on your phone, you can use Yahoo Go to sync them. Of course there are many other features, but the address book sync is what makes it worth it.

Install Yahoo Go on your Blackberry device, and now your mail and contacts are backed up and synced online (providing you setup your Yahoo Mail account on your device). It’s simply a great solution, I only wish I could sync my calendar with Yahoo as well.

Why Wordpress?

WordpressWordpress is probably one of the best pieces of software for blogging on the web. Since it runs entirely off of your web server, it is incredibly powerful and useful. One of the things I like about it is that it’s just as powerful when used as a CMS (content management solution). The big misnomer is that Wordpress is only for blogging… it’s not!

Every site I create uses Wordpress for several reasons. Clients are able to easily update their content, friendly urls are easy to create (great for search engines) , and all of your content can be searched from within your site!

If you design many sites, or run your own personal site, I recommend using Wordpress for your needs. Your clients will love it and you’ll love it!

In the coming weeks, I plan to highlight some great plugins I use for Wordpress along with other tips and tricks.

My First Blackberry

Blackberry PearlI’ve had my BlackBerry Pearl for over a month and I simply love it. When I first got the Pearl, I was unimpressed. Where are all the fancy graphics? Where’s the fancy interface? Windows Mobile certainly has this and it’s what I’m used to with Windows XP. I was wrong! Blackberry’s simplicity is what I really wanted deep down for a phone. Do I want to play a game of Pacman with fancy graphics? Not at all! I just want to play the game. The same goes for the Blackberry… I just want to be able to send/receive messages in a simple and easy way.

If you have a Blackberry, be sure to visit mobile.blackberry.com. You can only access the content on your device, however it is a great resource. There are several new themes, wallpapers, ring tones, and games to download for free!

Left, Right, and Center with CSS

TopStyleI use TopStyle to write code for various web sites. It’s still my editor of choice and for many of you… hand-coding is the only way to go. For those hand-coders writing CSS and XHTML, look at the 3 examples below:

Example 1:
.boxa { text-align: right; float: left; }
.boxb { text-align: left; float: left; }
.boxc { text-align: left; float: right; }

The above example works ok, but lets say you start to add more elements to your page. If they don’t fit within the already written styles, you need to add onto your style sheet or edit your current styles.

Example 2:
.boxb, .boxc { text-align: left; }
.boxa { text-align: right; }
.boxa, .boxb { float: left; }
.boxc { float: right; }

Example 2 is somewhat better, however then you’ll run into the problem of having a bunch of .boxb classes everywhere in your style sheet.

Example 3:
.left { text-align: left; }
.center { text-align: center; }
.right { text-align: right; }
.floatleft { float: left; }
.floatright { float: right; }

I find this to be the best solution. It keeps your style sheet size down and it makes it easier to get your layout just right. For example, you have this tag:

‹div›Information and Text Go Here‹/div›

Now we can start applying styles to it very easily:

‹div class=”floatleft right”›Information and Text Go Here‹/div›

We can easily change the float from left or right, or change the text alignment. Take some other common styles like:

.bold { font-weight: bold; }
.italic { font-style: italic; }
.fonta { font-size: 1em }
.fontb {font-size: 1.25em }

Styles can be applied or changed right from within the HTML document. There’s no need to constantly go back and forth to the style sheet. You also don’t have to remember… did .boxa class have bold in it? Did .boxc class have a float right? Now you can just type bold , floatright, or center in your div tag. It’s like using the ‹center› tag, but making it XHTML compliant!