Categories
Open Source WordPress

Add Facebook Like, Tweet and Google +1 sharing buttons to WordPress without a plugin

I have always used WordPress plug-ins to setup social media sharing links, but what I don’t love about plug-ins is that you really don’t know what sort of code is being injected into your WordPress installation. If you are curious, add a few plug-ins and View the Source of your webpage, more times than not the head gets filled with JS includes and messy code. Call me a code freak, but I strive for cleanliness.

Categories
Open Source WordPress

WP Custom Field Geocoder Update v.02

Today I’m releasing v0.2 of my WordPress Custom Field Geocoder! I started working on creating a google map on my WordPress installation and soon realized that I needed to make some changes to the plugin.

Categories
Open Source WordPress

WP Custom Field Geocoder – WordPress Plugin

I have finally finished my first WordPress plugin, which is a geocoder utility for geocoding addresses and storing the longitude and latitude as custom fields. I have been looking for a plugin that did something similar, but was unable to find anything – so decided instead to challenge myself and build a WordPress plugin.

Categories
Open Source WordPress

Building a WordPress Plugin for Geocoding

Its been awhile since I have last posted, but just wanted to drop an update in on what I have been working on lately. I’ve turned down the freelance and have been working on my own projects; my latest project is a wordpress plugin for geocoding. I searched high and low on Google for a wordpress plugin which would take an address, geocode it and return the long/lat.

Categories
Expression Engine Open Source PHP Web WordPress

Expression Engine: My CMS of Choice.

For about the past 3 years, I have been all about WordPress not only for blogs, but also to be used as a content management system. The core of WordPress is for blogging, but many people have started to adapt WP for their CMS needs. WP is a great platform, very small footprint, incredibly easy to theme and extend with a plethora of plugins available.

Categories
Web WordPress

How to redirect non-WWW traffic to WWW using Mod Rewrite

If you are looking to send people to www.yourdomain.com, when they type in yourdomain.com then you can use mod rewrite in Apache to get this done for you.

Use the code below in your .htaccess file:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

Categories
SEO Web WordPress

5 Ways to Improve SEO with WordPress

I have been building websites with WordPress for about for a few years now, I started with v1.0 and have made my way up to the latest v2.7. I started with this blog, then branched out to blogs for clients, and eventually I started creating some sites in WP and using it more as a CMS than blog. I found that over time, WP has some great benefits for SEO if you set it up right. StamfordCTGuide is a local guide for the town I used to live in, it has over 300 pages (posts) of content. By setting up WP with the right plugins and using some other tricks of the trade, I was able to secure some pretty high search engine rankings (#3 for Stamford, CT in Google). I have also created great rankings for this blog as well as blogs for clients. The thing I have learned about SEO is that its like Black Magic, there is no one way to achieve it and everyone has their own ways. As I have figured out certain things along the way, I felt that it would be important to share them, I’m not guaranteeing that this will work for everyone.

Here are my recommendations:

Plugins/Settings

  • SEO Title Tag – This is a great plugin, some people prefer the All-In-One Seo Page, but I’ve had great success with this one in particular. Title tags are probably one of the most important pieces for SEO, that people can often overlook. I always make sure that I include the name of the site along with the title of the post/article/page. An Example: Use Twitter to Find Jobs – Jake Rutter – User Interface Designer, CSS/XHTML Developer SEO Title Tag allows you to setup defaults to pull in the post title and also append the blog name to each title tag. And the beauty is that, you can go a step further and overwrite each title tag from the SEO Title Tag Manage tab.
  • FeedBurner PluginFeedBurner is a fantastic service, if you don’t already have an account, you will need to set one up. FeedBurner is a service that takes your RSS feed and syndicates, tracks, standardizes your feed so that it can be easily picked up by many other sites/services. The company was purchased by Google in 2005, and since that acquisition it seems that it has helped with my Google rankings, although that could just be a coincidence. The best part of WordPress is that everything is RSS-able, you can RSS everything, by category, by date, etc. I have seen instances where I post something, an article to StamfordCTGuide and within about 2 hrs its in Google and getting decent traffic. By using the feedburner plugin, it gives you a direct route to Google.
  • Google Sitemaps – This particular Google Sitemaps plugin is a great tool for generating an XML Sitemap of your site, which you then feed to Google via their Webmaster Tools. The sitemap will inform google of which pages are necessary to be crawled throughout your site. If you would like to learn more about Google Sitemaps, Google it!
  • Permalinks – I setup permalinks within my wordpress install as “/category/postname.html” . I have been setting up installs of wordpress in this fashion for about 3 years and have always had great luck with SEO. Some people choose to add in a date, but I prefer to use category and postname, it seems to work best. You can find Permalinks by going to Settings > Permalinks in WordPress.
  • Title Tags – Title tags are what you see on the bar above the URL when you are on any given page. That is also what you are usually searching for, when you do a search in Google. It will rely on the title tags and the content of the page. So the title tags are pretty important. If you wanted to be found when users type in: stamford ct restaurants. Then you would create title tags that reflect what you would like to be found for. The best thing about title tags, is that it can be achieved through trial and error. Once you are in Google, you can tweak those and about every 2 weeks (sometimes quicker), Google will pickup the new version of your site and your rankings should change if you have made changes to the title tags.

Above are the 5 ways that you can improve your SEO via WordPress.

Categories
SEO WordPress

Back in Google – Out of the Sandbox Finally!

Ah Finally, after about 3 months of being in the Sandbox for Google Search Results, Im out. I was in the sandbox as result of my wordpress install being hacked and hackers using SQL injection to place spam text in my posts. I was getting 200-300 uniques a day, which dropped to about 5-10 uniques a day after being placed in the sandbox, amazing how much our lives depend one search and Google. Im back to being ranked high for “actionscript 3.0, xml, flash slideshow”. Its good news all around!

Categories
Web WordPress

WordPress Custom Fields and Checking for Values

I have been building sites with WordPress for about a year now and I love it. I love the versatility that WordPress offers and I have had great success with Search Engine Visibility. I just recently read a great article on how to use custom fields to take your wordpress site to the next level.

I setup a few pages on my site StamfordCTGuide, which one section in particular, hotels. I added a few hotels and ran into some issues of missing images. Instead of adding the missing images image to each custom field entry in Admin. I wrote a little php if statement to check to see if there is a value present, and if there isnt – to show a default “no image available”.

Here is the php that I wrote, its simple – but really my first experience with writing php. I have been doing ActionScript 3 for about 6 months, and the basic principles are the same.


			<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php
			if ($hotels_img != null) {
			echo $hotels_img&#91;0&#93;;
			}
			else if ($hotels_img == null) {
			echo "http://www.stamfordctguide.com/wp-content/themes/stamfordctguide/images/noimage.gif";
			}

			?>" border="0" width="50"></a>