Posts Tagged ‘lt’

How to center a header, with HTML and CSS

Here’s a quick tip that’ll help you centre a heading using nothing more than a little bit of HTML and CSS.

First, in a new HTML document (which you can create using something as simple as NotePad or Textedit simply by saving your text document with the .html extension), you’ll want to create a new heading. You can do it by including the following code in your document:

<h1>Hello World</h1>

This text adds a standard heading to your website but what if you want to centre the heading on the page? Easy! Let’s modify the standard <h1> tag to apply a style sheet directly to it:

<h1 style=’text-align:center;’>Hello World</h1>

You’ll notice that I don’t need to setup an individual style sheet to accomplish this task, simply adding the style attribute will allow me to make the changes to this one specific item. If I want to be able to centre multiple items, I could use a style sheet class to accomplish the task:

<style>
.center {text-align: center;}
</style>
<h1 class=’center’>Hello World</h1>

Note the class is represented in the style sheet as a period (.) plus the name of the class. Similarly, if I wanted to assign the centre to all occorances of the <h1> tag I could use:

<style>
h1{text-align: center;}
</style>
<h1>Hello World</h1>

Securing WordPress against itself

As many bloggers have been learning lately, WordPress has a ton of major security holes being exploited by evil doers but because of the open nature of the tool, these exploits vary dramatically depending upon which version of the tool you’re using so one of the first tips we give WordPress blog owners is to remove the WordPress version number from your template file, this is pretty simple thing to do simply by opening the header.php file and searching for the line of HTML with your file which looks something like:

[source lang="html"]<meta name="generator" content="WordPress <?php bloginfo(‘version’); ?>" /> <!– leave this for stats –>[/source]

Unfortunately, this isn’t just good for stats … it’s great for hackers because it tells then exactly what version of WordPress you’re using which allows them to search the net for hacks specific to your version of WordPress. Unfortunately, as of version 2.5 the people at WordPress don’t simply allow you to remove this piece of code from your theme and forcibly “inject” the damning meta tag into your theme using the wp_head(); function which is required to make WordPress work.

There is luckily a fix, but it requires users to edit yet another file in their template directory. To truly remove the code, you’ll need to open the functions.php file and add the code:

[source lang="php"]remove_action(‘wp_head’, ‘wp_generator’); [/source]

10 WordPress Plugins I Couldn’t Run a Site Without

Before I give you my real list, let me tell you that there are some basics that don’t even deserve to make this list because if you’re running a blog without them, you’re simply working too hard. Plugins like Askimet, WP Lockdown, Theme Switcher, WordPress.com stats, the WordPress.com stats smiley remover and WordPress Database Backup.

Delete Duplicate Posts WordPress Plugin

Simply put, this plugin does exactly what it’s name implies. It gives web masters like me the opporunity to quickly scan tens of thousands of postings in databases to ensure there are no duplicates. It’s wonderfully powerful when you have a thousands of feeds to maintain, and only a few hours to do it in. It also happens to be from my close friend, Montreal web designer Christopher Bavota.

WP Auto Tagger

Oh man … I can not stress what a dream this plugin is. Tags are like keys to SEO gold, they’re one of the few things that a blog owner can do well and immediately see amazing results in the search engines but they’re such a pain in the ass to write. Basically a tag is what your article is about, but in popular single words and catch phrases. What WP Auto Tagger does is great, it breaks down your article and suggests the best tags, automatically. That’s a huge time saver.

Syntax Highlighter

This bad bay is the Jonas brothers of WordPress plugins. Sure it’s fairly pointless and a text editor could do the same job but when it comes to saving time (and money) it’s brilliant. What it does is takes a bunch of rough gobbly gook code like this:

$rss = fetch_rss( $url );
$pcount = 0;
$storycount = 0;
$textdate = date(“F jS”, mktime(0, 0, 0, str_pad($month, 2, “0″, STR_PAD_LEFT), str_pad($day, 2, “0″, STR_PAD_LEFT), $year));

echo $textdate;
foreach ($rss->items as $item) {

if (!$first) {$title = $item['title'];$first=1;

$content .= “<h3><a href=’”.$item['link'].”‘ title=’”.$item['title'].”‘>”.$item['title'].”</a></h3>”;
$content .= “<p>”;

if ($item['link_enclosure']) {
$content .= “<a href=’”.$item['link'].”‘ title=’”.$item['title'].”‘><img alt=’”.$item['title'].”‘ src=’”.$item['link_enclosure'].”‘ class=’alignleft’></a>”;
}

and turns it into …

[source lang="php"]$rss = fetch_rss( $url );
$pcount = 0;
$storycount = 0;
$textdate = date("F jS", mktime(0, 0, 0, str_pad($month, 2, "0", STR_PAD_LEFT), str_pad($day, 2, "0", STR_PAD_LEFT), $year));

echo $textdate;
foreach ($rss->items as $item) {

if (!$first) {$title = $item['title'];$first=1;

$content .= "<h3><a href=’".$item['link']."’ title=’".$item['title']."’>".$item['title']."</a></h3>";
$content .= "<p>";

if ($item['link_enclosure']) {
$content .= "<a href=’".$item['link']."’ title=’".$item['title']."’><img alt=’".$item['title']."’ src=’".$item['link_enclosure']."’ class=’alignleft’></a>";
}
[/source]

When it comes to saving time, that’s a huge helper.

WP Super Cache

It simply terrifies me how many people are not running this plugin or a similar flavor of it. It makes your site safer, easier to manage and much faster for the end user. I’ll also mention that by running it you can use a host like BlueHost for $7.95 a month to run dozens of websites instead of spending hundreds a month to run just one site on complex, over priced servers.

Enforce www. Prefix

Actually, I’m going to cheat here and tell you that this and Canonical URL’s are plugins you should have for massive SEO curb appeal. Basically Enforce www. Prefix forces your website to always use the correct SEO address and Canonical URL’s tell’s Google that your article is the source, so even if people repost it you get credit.

Google XML Sitemaps

We all want Google to come to our site right? Well, let’s make it easy for them! Sitemap will provide Google with a free pass to all your content, no matter how deep your links are.

Get Image from Post

People love pictures and with this simple plugin your website will be able to post pictures as part of your excerpt. Speaking of excerpts, Get Better Excerpts will allow you to pull complete sentences or words from your excerpts.

SEO Friendly Images

Between this and SEO Smart Links, I’ll be honest most websites are on auto pilot. The SEO Friendly Images ensures your images have the proper tags to make the most of search engines, while Smart Links adds valuable data to your hyperlinks.

WordPress Admin Quick Menu

quickmenu 10 WordPress Plugins I Couldnt Run a Site Without imageI might be a little bias but this is truly my favorite plugin. It allows you to add your own menu items to the WordPress Admin client, basically creating shortcuts between your website and important things like AdSense and Analytics. It’s completely customizable and saves endless frustrations between myself and clients but providing them immediate access to critical links.

Download Counter

Just like Analytics lets you know who’s visiting and where they’re going, you’ll want to track what people are downloading from your website and how often. This saves a fortune in report generation time, by simply allowing me to tell my clients weekly how often software has been downloaded.

How to quickly design a quality web site

free website design How to quickly design a quality web site image

The first thing that you have to know about building a great looking website is that it’s super easy, super cheap and takes almost no time at all. The basics are already stored on your computer, and those basics can be easily put together like a sandwich to build a great website quickly.

Defining your layout

Step one, let’s decide what your new website is going to look like. Surprisingly, most website designs can be boiled down to just a few basic layouts.

example website layout options How to quickly design a quality web site imageOf course there are plenty more than the few I’ve laid out here but for the purpose of our project, I want to keep this simple and selected the first option, a traditional website layout with a header, footer and two columns.

webpage breakdown How to quickly design a quality web site imageThe HTML used to create this basic web page layout is:

[source lang="html"]
<body>
<div id=’page’>
<div id=’header’>Page Header</div>
<div id=’content’>Content</div>
<div id=’sidebar’>Sidebar</div>
<div id=’footer’>Page Footer</div>
</div>
</body>
[/source]

Preview Page

To format the page properly we also need to add some basic CSS:

[source lang="css"]body {
margin: 0px;
padding: 0px;
text-align: center;
}
#page {
width: 800px;
margin-right: auto;
margin-left: auto;
text-align: left;
}
#header {
background-color: #CCCCCC;
clear: both;
height: 100px;
}
#footer {
background-color:#00FFFF;
clear: both;
height: 100px;
}

#sidebar {
background-color:#FFFFCC;
clear: left;
float: left;
width: 200px;
}

#content {
background-color:#ffffff;
clear: right;
float: right;
width: 600px;
}[/source]

Preview Page

As you will now see, the page content is placed in the appropriate areas for our website. For those of you who are clever with CSS, you can change to the second layout by changing the flipping the content and sidebar’s clear/float values. Technically, if you look at the HTML for this page, the sidebar appears to the right of the HTML but is formated with CSS to appear on the left, this is a Search Engine Optimization trick to move our content closer to the top of the page.

Designing the Web Page

The  Header

Now that we have a basic layout for our website, we need to add a little bit of flare, to do this we need some color and some texture. The best place to get it? Flickr or other online photo database. In this case, I’m going to use a macro focus pair of blue sneakers from Fey the Ferocious.

3031455100 f5450c9645 b How to quickly design a quality web site image

What I want to do is use the sneaker photo as both the header and the color scheme for the website, this is make fairly easy since the photo has such rich colors. Let’s get started with the header by adding a title as well as a menu in the code as such:

[source lang="html"]<div id=’header’>
<div id=’logo’><strong>Website Name</strong></div>
<div id=’menu’>
<ul>
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
</ul>
</div>
</div>
[/source]

By adding this simple header structure, we’ve given the HTML everything it needs to build our header. The next step is to add some basic CSS to the file in order to format and structure the piece.

[source lang="css"]#page {
width: 800px;
margin-right: auto;
margin-left: auto;
text-align: left;
font-family: "Lucida Sans", Arial, Helvetica, Geneva, sans-serif;
}
#header {
background-color: #CCCCCC;
clear: both;
}

#logo {
background-image: url(3031455100_f5450c9645_b.jpg);
padding-top: 50px;
padding-bottom: 50px;
padding-left: 50px;
background-position: -200px;
font-size: 24px;
color: #FFFFFF;
}

#menu ul {
margin: 0px;
padding: 0px;
list-style-type: none;
}
#menu li {
display: inline;
padding-right: 10px;
}
#menu a {
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
}
[/source]

Take care to note that I’ve altered the #header and #page format a little to account for the new items, including the fonts I would like to use.

Here’s what my new header will look like:

web site How to quickly design a quality web site imagePreview Page

The Footer

Once the header is completed, I like to work on the footer next. I’m not entirely sure why I do it this way but I find the footer equally important as the header and sometimes it seems to be an after thought on web pages, so I like to address it while I’m still fresh.

The footer has to contain some basic elements such as copyright and links, to accomplish this here’s the HTML code that I’ll use:

[source lang="html"]<div id=’footer’>

<div id=’footermenu’>
<ul>
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
</ul>
</div>

<p>&copy; Copyright 2009, Website Name. All rights reserved.<br />
Header photography by <a href="http://www.flickr.com/photos/renneville/3031455100/">Ferocious Feyrannosaur</a>, <a href="http://www.thisismyurl.com">website design by Christopher Ross.</a><br />
</p>
</div>

[/source]

The CSS for the footer is equally simple:

[source lang="css"]#footer {
clear: both;
height: 100px;
font-size: 10px;
color: #666666;
margin-top: 5px;
padding-top: 5px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #000000;
}
#footermenu ul {
margin: 0px;
padding: 0px;
list-style-type: none;
}
#footermenu li {
display: inline;
padding-right: 10px;
}
#footer a {
color: #666666;
text-decoration: none;
}[/source]

Since a footer is the technical, ‘legal’ notes for a website, I make it slightly smaller and lighter as to not distract from the rest of the page. Make note of the changes to the original #footer code as well.
web site footer How to quickly design a quality web site image

Preview Page

Formating the Sidebar

Before we get into formating the sidebar we need to make sure there is some space to the right of it so that the content doesn’t butt right up against the sidebar content. To do this, we need to add a padding area inside the sidebar along with our new content. To do this, I will add a margin to the boxes we add but first we have to change the basic HTML of the sidebar.

First, let’s add a new division element with the box class and add a level two heading for each, along with a paragraph of test (for now I’ll use Lorem Ipsum) along with the link.

[source lang="html"]<div id=’sidebar’>
<div class="box">
<h2>Item 1</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent orci lectus, iaculis ut ullamcorper id, porttitor ut dui. <a href="#">Item 1</a></p>
</div>
<div class="box">
<h2>Item 2</h2>
<p>Sed eget placerat elit. Curabitur sit amet ullamcorper massa. Donec id viverra dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit. <a href="#">Item 2</a></p>
</div>
<div class="box">
<h2>Item 3</h2>
<p>Suspendisse in quam ac magna condimentum fringilla sit amet sed orci. Fusce interdum ligula eget mauris imperdiet iaculis. Donec eu auctor turpis. Donec ullamcorper hendrerit urna quis malesuada. <a href="#">Item 3</a></p>
</div>
<div class="box">
<h2>Item 4</h2>
<p>Quisque blandit, ante eu tempus tempus, massa lectus dignissim ipsum, id interdum dolor mauris non mi. Ut in orci turpis, non tincidunt nunc. In placerat diam in sem cursus dictum. Morbi ac urna urna. Ut nulla tellus, gravida a iaculis ut, tempus et odio. <a href="#">Item 4</a></p>
</div>
</div>[/source]

Trust me, this looks a lot more complicated than it really is! Take a look …

Now we have to add some CSS to format this content:

[source lang="css"]#sidebar {
clear: left;
float: left;
width: 200px;
font-size: 10px;
color: #666666;
padding-bottom: 20px;
}
.box {
border-bottom-width: 5px;
border-bottom-style: solid;
border-bottom-color: #CCCCCC;
padding-right: 10px;
margin-right: 10px;
}
.box h2 {
color: #3B4A88;
font-weight: normal;
margin-top: 10px;
margin-bottom: 0px;
padding-top: 10px;
padding-bottom: 0px;
}
.box p {
padding-top: 0px;
padding-bottom: 10px;
margin-top: 0px;
margin-bottom: 10px;
}
.box a {
font-weight: bolder;
color: #3B4A88;
text-decoration: none;
}[/source]

Preview Page

The Content

Page Demo (20090625)

Finally, to complete the webpage we have to add some content. Again, I’ll rely on Lorem Ipsum for the purpose of putting some quick content into the website, you can add your own text later.

Preview Page

There are not a lot of major changes to the content in this design, if it was a client project I’d add a sizable number of CSS modifications in order to format the pages but as a demo of how to quickly design a quality website I think it’s pretty good.

You can look at the website with CSS as well as a version with no CSS to give you an idea of the changes. You’re also welcome to download the source code and use this website template as a basis for your own website.

You might also want to check out a couple simple variations to this theme:

How to exclude yourself from Google Analytics with WordPress

Without data we’re only guessing so it’s critical that we not only have great data to make decisions with but also that the data we do have is as free from corruption as possible. With that in mind if you run a WordPress website and Google Analytics, you’re most likely skewing your data without realizing it by visiting your own website.

To stop yourself from being counted as a visitor, all you need to do is add a simple piece of code to your websites header.php file that will read:

 

[source lang="php"]<?php
if (is_user_logged_in() == 1) {
if (wp_get_current_user()->ID == 1) {
setcookie("analyticsexcludeme", "analyticsexcludeme", time()+3600);
}
};
?>[/source]

Make sure the code is placed above the Google Analytics code (which I always like to place in the footer of my websites anyways). Once this code is placed in your header file, your website is updated but you’re not finished yet!

 

The code is only the first part, it’s what tells Google that you’d like to be excluded but now we need to actually exclude you.

Log into your Analytics account and click Analytics Settings.

Next, open the Filter manager (very bottom right corner).

Finally, add a new Filter with the settings:

analytics exclude me How to exclude yourself from Google Analytics with WordPress imageThis will tell Google to exclude all visitors who have the cookie “analyticsexcludeme” in their web browser, the same cookie we set earlier in the header code section of this tutorial.

Get Image from Post, a Free WordPress Plugin

As with many of my free WordPress plugins here on the website this one is used extensively throughout my website to help me deliver a great site for my visitors. The plug basically allows users to grab an image from their posts and display it in the Loop.

It’s perfect for home pages, archives etc. where you link to include a visual idea of what the posts about.

This is a simple plugin which allows users to return an image from the related post.

Please feel free to download this plugin.

Installation

To install the plugin, please upload the folder to your plugins folder and active the plugin.

== Frequently Asked Questions ==

= How do I display the results? =

Insert the following code into your WordPress theme files: 

= General results =

ithout passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.

 get_image_from_post();

= Altering the before and after values =

By default the plugin wraps your code in list item (&lt;li&gt;) tags but you can specify how to format the results using the following code:

 get_image_from_post(‘before=&lt;p&gt;&amp;after=&lt;/p&gt;’);

= Adding a Link = 

If you’d like to link to the post (remember it’s not live yet) you can do so by calling:

 get_image_from_post(‘link=true’);

= Echo vs. Return =

Finally, if you’d like to copy the results into a variable you can return the results as follows:

 get_image_from_post(’show=false’);

Get Better Excerpt Plugin for WordPress

The Get Better Excerpt plugin works almost identical to the built in get_the_excerpt() and the_excerpt() functions except it returns whole words instead of cutting off the excerpt as the existing function does.

The plugin allows you to display the excerpt or read it to a variable, select the number of words to return and choose if you want the plugin to skip the built in excerpt and read from the content instead.

As with all my plugins, this is the code I use here on this is my url to return excerpts throughout the website. You’re free to download it.

Frequently Asked Questions

= How do I display the results? =
Insert the following code into your WordPress theme files: 
= General results =
ithout passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.
 get_better_excerpt();
= Altering the before and after values =
By default the plugin wraps your code in list item (&lt;li&gt;) tags but you can specify how to format the results using the following code:
 get_better_excerpt(‘before=&lt;p&gt;&amp;after=&lt;/p&gt;’);
= Adding a Link = 
If you’d like to link to the post (remember it’s not live yet) you can do so by calling:
 get_better_excerpt(‘link=true’); 
= How many words? = 
You can specify the number of words returned using the option:
 get_better_excerpt(‘words=20′); 
 
 = Skip the excerpt? = 
If you would like to load the content directly, skipping the entered excerpt:
 get_better_excerpt(’skipexcerpt=true’); 
 = Include a trailing character? = 
By default the plugin includes a … after the excerpt, you can remove it or change it by altering:
 get_better_excerpt(‘trail=’); 
= Echo vs. Return =
Finally, if you’d like to copy the results into a variable you can return the results as follows:
 get_better_excerpt(’show=false’); 

 

What’s the biggest mistake you’re making on your website?

We all make mistakes but when it comes to our online web businesses, it’s important that we fix our mistakes before they become crippling.

Keywords

A keyword (or Tag in WordPress lingo) is a word or phrase intended to help support the content that you’re reading on a specific page, not the entire website. People often overload pages with keywords which have no relevancy to the page they’re designing with the hopes that Google will fall for the trick. Google will not fall for it. In fact, there’s plenty of evidence to show that Google will punish you for using unrelated keywords, which is mistake #1 on most websites.

Boring Content

Content matters, it’s a silly reality but you have to stop thinking about your visitors as a funny little line in an analytics program and begin caring about them as people. Every person who comes to your website should feel they are better off after reading your content. If they don’t you’re wasting their time and they will not come back, so write better content and watch your website traffic increase dramatically.

Failing to Reach Your Market

The old days of building a website and assuming people will find it are over (if they ever existed at all), website owners  need to tell people about their website and promote it everywhere. Make sure your site address is on your business cards, marketing materials, the side of your building, company vehicles, all of your online profiles and in prominent newsletters, magazines etc. Remember, if you don’t tell people about your website they won’t know it’s there.

Poor Titles

Writing for websites is easy, make sure you have a catchy title that will help people determine if they want to read your piece and then make sure it’s been properly placed in your HTML code. A great title needs to be in two places on a website, first it has to be in the <title></title> tags of your page but it should also be reflected in your <h1></h1> tags in the body of your content. This helps search engines know that your page is about your title by labeling the document but also by placing the title in an easy to read and powerful tag within your text.

Poor Structure

Web pages are a lot like books, they need structure for people to be able to read them. In this case, you want computer software such as FireFox, Safari and IE to read your pages as well as Google, MSN and Yahoo right? Well then, you’d better make sure your page is coded to their standards! Luckily, the W3C has a wonderful tool to help you ensure your page can be properly read.

Stale Content

If you’ve follow my advice, you know that your visitors are people not mindless data points on a graph so you have to respect that they simple won’t come back to your website if you don’t take the time to post anything new there. Work out a schedule that you can keep and write a blog posting at least once each week (more if you can) to provide your audience with fresh content.

Be Organic

While it’s acceptable and even encouraged to buy ads on services such as Google be careful that you’re building your client base through organic methods, not paid advertising. Google looks very poorly on paid link placement and has a reputation for punishing people excessively for buying links. If you really want to build your websites online reputation, do it honestly and take a little more time, in the end it’ll get you where you need to be.

Be Original

The web is a very big place and people have a lot of choice when it comes to content, so try to be original and write content people want to read. Ask yourself why you read specific websites and learn to improve your content to ensure people have a reason to come back. Once you have unique, original content others will start linking to your content because you’re an authority.

SEO is Irrelevant

Would you rather optimize your store for the local newspaper or for your customer? Stop looking to optimize your content for search engines, they’re irrelevant. Don’t get me wrong you have to make sure your content can be read by them and that your website is compatible with Google but stop treating your website content like it needs to be written to appeal to the big search engines and instead, write your content to appeal to people like your mother, your father, your kids and your neighbors. After all, they’re the ones who are reading your content … not a robot. 

Learn to be co-operative

The biggest mistake people make? Failing to ask other website owners to link to them. Search engines rankings work on a system called PageRank, the way PageRank works is by counting the number of links from other websites to your website, the more links you have coming into your website … the higher you rank on Google. If you want to be successful on the web, ask your friends and family as well as other related businesses to link to you.

How to check to see if there are pages or posts before displaying in WordPress

When I’m programming a new theme in WordPress I’ll often want to check to see if there are going to be any results before I write content to the page, but often the process of calling the results will display it.

For example, if I want to list a series of pages inside a <ul> tag I first want to know if there is going to be a list of pages to write otherwise I will be writing an opening and closing <ul></ul> with nothing in the middle or worse, a title as well. To avoid this, here’s what I do:

[source lang="php"]<?

$list = wp_list_pages(‘echo=0′);

if ($list) {
echo "<h2>My pages</h2>";
echo "<ul>";
echo $list
echo "</ul>";
}

?>[/source]

The code example above simply uses the echo=0 option to preload the page list results into a variable called $list, next I simple check if $list has a value and if it does, I write the header and <ul> tags as well as the variable $list. If there are no pages, nothing is written.

 

I’ve build a similar function into three recent plugins, where you can preload the results into a variable using a show attribute by setting the value to false:

  1. $list = scheduledPosts(’show=false’);
  2. $list = randomPosts(’show=false’);
  3. $list = popularPosts(’show=false’);

Easy Scheduled Posts for WordPress

While I was working on my new theme for thisismyurl.com I came across the need to publish a series of scheduled posts in the side bar and so I put together a simple plugin for WordPress. The tool works like most WordPress theme calls and features:

  • Customizable number of links returned
  • Customizable before and after to ensure you can display the results
  • The ability to echo or return results

To use the plugin, install it to your WordPress website and edit your theme files by placing the following code:

General results
Without passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.

[source lang="php"]&lt;?php scheduledPosts();?&gt;[/source]

Specific number of results
If you would like to return a specific number of results as your maximum:

[source lang="php"]&lt;?php scheduledPosts(‘count=10′);?&gt;[/source]

Altering the before and after values
By default the plugin wraps your code in list item (<li></li>) tags but you can specify how to format the results using the following code:

  • [source lang="php"]&lt;?php scheduledPosts(‘before=&lt;p&gt;&amp;amp;after=&lt;/p&gt;’);?&gt;[/source]

    Echo vs. Return
    Finally, if you’d like to copy the results into a variable you can return the results as follows:

    [source lang="php"]&lt;?php scheduledPosts(‘echo=false’);?&gt; [/source]

    Download the plugin

     

    Support forums are now online! If you have any questions, please visit http://forums.thisismyurl.com.

  • Easy Popular Posts Plugin for WordPress

    While I was working on my new theme for thisismyurl.com I came across the need to publish a series of popular posts in the side bar and so I put together a simple plugin for WordPress. The tool works like most WordPress theme calls and features:

    • Customizable number of links returned
    • Customizable before and after to ensure you can display the results
    • The ability to echo or return results
    • Let’s you control how popular a post should be

    To use the plugin, install it to your WordPress website and edit your theme files by placing the following code:

    General results
    Without passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.

    [source lang="php"]&amp;lt;?php popularPosts();?&amp;gt;[/source]

    Specific number of results
    If you would like to return a specific number of results as your maximum:

    [source lang="php"]&amp;lt;?php popularPosts(‘count=10′);?&amp;gt;[/source]

    Altering the before and after values
    By default the plugin wraps your code in list item (

  • ) tags but you can specify how to format the results using the following code:
    [source lang="php"]&amp;lt;?php popularPosts(‘before=&amp;lt;p&amp;gt;&amp;amp;amp;after=&amp;lt;/p&amp;gt;’);?&amp;gt;[/source]

    Echo vs. Return
    Finally, if you’d like to copy the results into a variable you can return the results as follows:

    [source lang="php"]&amp;lt;?php popularPosts(‘echo=false’);?&amp;gt; [/source]

    Minimum Comments
    To ensure you only return truly popular articles, you can limit the returned posts to posts with a minimum number of comments

    [source lang="php"]&amp;lt;?php popularPosts(‘comments=10′);?&amp;gt; [/source]

    Download the plugin

    Support forums are now online! If you have any questions, please visit http://forums.thisismyurl.com.

  • Easy Random Posts Plugin for WordPress

    While I was working on my new theme for thisismyurl.com I came across the need to publish a series of random posts in the side bar and so I put together a simple post randomizer for WordPress. The tool works like most WordPress theme calls and features:

    • Customizable number of links returned
    • Customizable before and after to ensure you can display the results
    • The ability to echo or return results

    To use the plugin, install it to your WordPress website and edit your theme files by placing the following code:

    General results
    Without passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.

    [source lang="php"]&lt;?php randomPosts();?&gt;[/source]

    Specific number of results
    If you would like to return a specific number of results as your maximum:

    [source lang="php"]&lt;?php randomPosts(‘count=10′);?&gt;[/source]

    Altering the before and after values
    By default the plugin wraps your code in list item (<li>) tags but you can specify how to format the results using the following code:
    [source lang="php"]&lt;?php randomPosts(‘before=&lt;p&gt;&amp;after=&lt;/p&gt;’);?&gt;[/source]

    Echo vs. Return
    Finally, if you’d like to copy the results into a variable you can return the results as follows:

    [source lang="php"]&lt;?php randomPosts(‘echo=false’);?&gt; [/source]

    Download

    Download the plugin.

    Support forums are now online! If you have any questions, please visit http://forums.thisismyurl.com.

    How to create a Coming Soon page for WordPress

    Adding a Coming Soon! page to WordPress is surprisingly easy for website designers of all levels, there are a few ways to do it of course but here are two extremely simple and straight forward ways to ensure your WordPress website has a proper greeting page.

    Theme Switcher Reloaded

    A super cool, extremely easy way to create a Coming Soon! page for WordPress is to install the Theme Switcher Reloaded plugin and simply add a second theme to your install! Your second theme only needs a few things, I’ve included a free bare bones theme for you to use as your Coming Soon page, so all you need to do is:

    1. Download, install and activate the Coming Soon theme
    2. Download and install and activate Theme Switcher Reloaded

    Now that the general public can only see the Coming Soon! page, you’re free to add your second (real) theme and activate it using the Theme Switcher Reloaded plugin. Once you’ve added it, visit your homepage using the ?wptheme=[yourthemedirectoryname] option to view the working theme. Remember you have to be logged into the backend to see it!

    Adding a Template to Your Existing Theme

    If you don’t want to go to the trouble of installing the Theme Switcher plugin, you could also add a special page template to your directory with the following content:

    [source lang="php"]

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    /*

    Template Name: Coming Soon
    */
    echo "Coming Soon!";
    ?>
    [/source]
    Of course, you will then have to add a new Page to your website, make it the default homepage and change the theme. This option works well but causes the homepage of the site to always default back to a coming soon page, even for the developers. Tim has an article with detailed instructions on it here.

    By the way, if you think a Coming Soon! page has to be boring, think again! Check out these great Coming Soon pages at 25 Examples of Cool Coming Soon Page Designs – Part II

    Coming Soon! WordPress Theme

    comingsoon Coming Soon! WordPress Theme imageThis theme may go down in history as my lamest theme ever but it’s a utilitarian theme designed with a simple purpose, to display a Coming Soon! message on the homepage as a notice to new comers while the website is under construction.

    To install the theme, simply download the ZIP file and uncompress it before uploading the resulting /coming-soon/ directory to your web server.

    Why build it?

    Actually it’s a funny thing, I’ve written before that sometimes when you write a blog you need to review your Analytics (The Vomitorium and Data Mining) and looking over my numbers today, I’ve seen a steep climb in the number of people searching for a template like this.

    The Coming Soon! theme offers users the ability to quickly add a page while still allowing you to track the vital statistics and add plugins such as Google Analytics or keyword tools. The theme makes full use of the header and footer functions, without displaying any actual website content. 

    Customizing the Theme

    This theme is a bare bones WordPress theme. In fact it doesn’t even make use of the Loop so if you’d like to customize it by adding a graphic or changing the text, simply open the index.php file and add basic HTML within the <div> tags.

    download file Easy Technorati Tags for WordPress

    How to use the heading tag to improve search engine listings

    In HTML there are few tags as important as the <h1> tag. It is literally the heading for your page and when we talk about how to structure a document, we’re taught that the <h1> tag should represent the title of the document.

    Common Mistakes

    Having more than one H1 per page.

    A web document can have only one title, and that’s what the H1 tag is meant to be. Instead of having more than one, use the <h2> tag and stylize it with CSS.

    Using the H1 tag because you like the font size

    The H1 tag is big because it’s meant to be important not because people think it’s pretty. As will all HTML elements, you can use CSS to change the look and feel of tags easily. For example:

    [source lang="html"]
    <h1>Test Title</h1>
    <h2>Test Title Two</h2>
    <strong>Test Strong</strong>
    [/source]

     

    [source lang="css"]
    h1,h2,strong {
    font-size: 100px;
    font-weight: normal;
    }
    [/source]

    Using the code above will make all H1,H2 and strong (bold) tags throughout a website look identical.

     

    Using the same H1 throughout the site

    The purpose of the H1 tag is … as I’ve said to represent the content of a specific page so it’s important that the contents of your heading are unique for each page.

    Using the H1 for the wrong content, or not using it at all

    If the purpose of a heading tag is to highlight the heading (or title) of the document, then not including one at all will result in search engines being unable to properly understand your content.

    Using Heading Tags to separate content

    Let’s take a look for example at a simple piece of Lorem Ipsum to see how search engines may see your content with (and without) proper headings.

    Example One : No Formating

    As you can see from this example, it’s nearly impossible to determine what text is important and which is worthless in this post.

    [source lang="html"]
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sapien nulla, malesuada eu, tincidunt eu, dapibus sed, risus. Curabitur rutrum velit non enim. Duis congue, neque non pharetra blandit, est lectus aliquet purus, id dapibus augue lacus sed sem. Aliquam erat volutpat. Ut hendrerit sapien vitae lacus. Duis libero lectus, varius sit amet, auctor ut, mattis id, magna. In hac habitasse platea dictumst. Aliquam libero neque, interdum id, dignissim id, fermentum eget, tellus. Aliquam eget lorem quis nibh fermentum egestas. Duis id ante sed ligula egestas malesuada. Maecenas pharetra mollis ipsum. Vestibulum dignissim, turpis vel luctus facilisis, dolor mi gravida nisi, ac suscipit enim ipsum vel elit. Aenean mauris purus, convallis ac, pellentesque suscipit, varius in, lacus. Morbi blandit odio quis libero. Nullam gravida rhoncus massa. Fusce ullamcorper. Phasellus sapien nibh, consequat eu, semper in, pretium in, dui. Vivamus scelerisque.
    [/source]

    Example Two: Simple Text Formating

    Now, with paragraph breaks, we can at least start to understand the format but not what is important.

    [source lang="html"]

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

    Sed sapien nulla, malesuada eu, tincidunt eu, dapibus sed, risus. Curabitur rutrum velit non enim. Duis congue, neque non pharetra blandit, est lectus aliquet purus, id dapibus augue lacus sed sem. Aliquam erat volutpat. Ut hendrerit sapien vitae lacus. Duis libero lectus, varius sit amet, auctor ut, mattis id, magna. In hac habitasse platea dictumst.

    Aliquam libero neque, interdum id, dignissim id, fermentum eget, tellus.

    Aliquam eget lorem quis nibh fermentum egestas. Duis id ante sed ligula egestas malesuada. Maecenas pharetra mollis ipsum. Vestibulum dignissim, turpis vel luctus facilisis, dolor mi gravida nisi, ac suscipit enim ipsum vel elit. Aenean mauris purus, convallis ac, pellentesque suscipit, varius in, lacus. Morbi blandit odio quis libero. Nullam gravida rhoncus massa. Fusce ullamcorper. Phasellus sapien nibh, consequat eu, semper in, pretium in, dui. Vivamus scelerisque.
    [/source]

    Example Three: Formating with Headings

    Using both paragraph formating and headers:

    [source lang="html"]
    <h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</h1>

    Sed sapien nulla, malesuada eu, tincidunt eu, dapibus sed, risus. Curabitur rutrum velit non enim. Duis congue, neque non pharetra blandit, est lectus aliquet purus, id dapibus augue lacus sed sem. Aliquam erat volutpat. Ut hendrerit sapien vitae lacus. Duis libero lectus, varius sit amet, auctor ut, mattis id, magna. In hac habitasse platea dictumst.

    <h2>Aliquam libero neque, interdum id, dignissim id, fermentum eget, tellus.</h2>

    Aliquam eget lorem quis nibh fermentum egestas. Duis id ante sed ligula egestas malesuada. Maecenas pharetra mollis ipsum. Vestibulum dignissim, turpis vel luctus facilisis, dolor mi gravida nisi, ac suscipit enim ipsum vel elit. Aenean mauris purus, convallis ac, pellentesque suscipit, varius in, lacus. Morbi blandit odio quis libero. Nullam gravida rhoncus massa. Fusce ullamcorper. Phasellus sapien nibh, consequat eu, semper in, pretium in, dui. Vivamus scelerisque.
    [/source]

    As you can see, using the heading tag properly in example three allows us to clearly see a separation of content and allows robots such as Google to properly crawl and identify the critical areas of our websites.

    You may also care to watch the video Does it matter what order you put header tags in?