Wordpress – Meta Tags v2.7




Tagged Under : , , ,

Version: 1.52g
Revision: 43 Build 17

Wordpress – Meta Tags v2.7

Introduction:
this source code was made especially for users that has a lot of meta – tags. However, this little project took me four days to construct and repair. Its not easy constructing a piece of code for wordpress. But, it takes time and patient to complete such a task!

This source is copyrighted by Lair360 as “freeware” distribution.
But, you’ll have to keep the comments intact for use!

1.] Go to Cpanel or an FTP server and copy this code – snippet.

File Name: header.php
—Copy Source Code—

<?php
/* Wordpress script copyrighted by
      **** Lair360 ~2009 (Freeware)
      ***** Url: http://lair360.co.uk
*/
global $post;
if( is_single() || is_page() || is_home() ) :
	$tags = get_the_tags($post->ID);
	if($tags) :
		foreach($tags as $tag) :
			$sep = (empty($keywords)) ? '' : ', ';
			$keywords .= $sep . $tag->name;
		endforeach;
?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php
	endif;
endif;
?>

—End Source Code—
Copyright 2001-2009 Lair360


2.] Add the following codes into this file: “header.php”.
This file is located in your theme directory…

Notes: you will need to delete your “keywords” meta – tags, if you want to use this source code.

3.] Save your work and check your blog’s meta – tags!
You can see it by right clicking on your mouse and select: “View Page Source” (Firefox).

4.] Done!




How to create ~ Meta Tags




Tagged Under : , ,

Version: 26.2
Revision: 46.5 Build 67

How to create ~ Meta Tags

Introduction: this article will help you to build a good “meta tags” table.
But, you must read some of the basic information before adding your own keywords, charset, title and ect…

1.] Download notepad++ from the original author or from a mirror and install the software.
——————————-

http://sourceforge.net/projects/notepad-plus/

http://filehippo.com/download_notepad/

——————————-

2.] Copy the source code and paste it into your notepad.

—Copy Source Code—

<META NAME="TITLE" CONTENT="">
<META NAME="DESCRIPTION" CONTENT="">
<META NAME="KEYWORDS" CONTENT="">
<META NAME="OWNER" CONTENT="">
<META NAME="AUTHOR" CONTENT="">
<META HTTP-EQUIV="EXPIRES" CONTENT="">
<META HTTP-EQUIV="CHARSET" CONTENT="">
<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="">
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="">
<META NAME="COPYRIGHT" CONTENT="">
<META NAME="RATING" CONTENT="">
<META NAME="ROBOTS" CONTENT="">
<META NAME="REVISIT-AFTER" CONTENT="">

—End Source Code—

3.] Add your own information inside the quotes…

Example…
——————————–

Notes*1: for best results, select 12 – 15 of the most popular and relevant keywords to that particular page, ideally keyword phrases of 2 to 3 words, separated by a comma. Ensure that the keywords you use are located in the title, description and content of the page. If they are not,
DO NOT add extra words! But, if you did this by accident, the theme of your page will be watered down.

Important: the ordering of keywords plays an important role, make sure you order the keywords in order of importance. The 1st being the most important.

Notes*2: the “Distribution Meta Tag” is used to tell search engines whether the page is global or locally oriented.

Here are some more in – dept infos on the individual “meta names and http-equiv”…
——————————–

Title ~ The title of the web page is perhaps the most important of all meta tags.

Keywords ~ Keywords should be separated by commas, with the more important words listed first.

Description ~ The page description should be less than 200 words.

Author ~ This represents the name of the person who authored the page

Email ~ The contact person’s e-mail address.
Copyright – The copyright year and the name of holder.

Revisit ~ This sets the frequency of a spider’s return.
This can be in days, weeks or months…

<meta name="revisit-after" content="2 Weeks">

Expires ~ The date when the content expires.

<meta http-equiv="expires" content="Wed, 30 Jan 2003 21:29:02 GMT">

Notes: if you don’t want your webpage to expires, please remove the “Expires” tags.

Distribution
- Global ~ Used for major entry points.
- Local ~ Used for local entry points.

<meta name="distribution" content="global">

Notes: The Distribution Meta Tag is used to tell search engines whether the page is global or locally oriented.

Robot ~ Web spiders can be restricted using the following Robot meta tags.
- All ~ Robots may traverse and index the page.
- No Index (noindex)~ Robots may traverse but not index the page.
- No Follow (nofollow) ~ Robots may index the page but not follow it.
- None ~ Robots may neither index nor traverse the page.
- index ~ robots may include this page in search engines.
- follow ~ robots may follow page links to find other pages.

Here is some other codes for robots….
——————————–
- Search results pages should not show “cache” link.

<meta name="robots" content="NOARCHIVE">

- Search results pages should not display the “Open Directory Project (ODP)” title and description for the page.

<meta name="robots" content="NOODP">

Rating
- General
- 14 Years
- Mature
- Restricted

——————————–
Character set ~ The most common character set is ISO-8859-1. The following is a rough list of the languages contained in the ISO 8859 series.

Windows-1252 ~ This is the default for most htm and html pages.

ISO-8859-1 – Western Europe and Americas: Afrikaans, Basque, Catalan, Danish, Dutch, English, Faeroese, Finnish,
French, Galician, German, Icelandic, Irish, Italian, Norwegian, Portuguese, Spanish and Swedish.

ISO-8859-2 – Latin-written Slavic and Central European languages

ISO-8859-3 – Esperanto, Galician, Maltese, and Turkish.

ISO-8859-4 – Scandinavia / Baltic

ISO-8859-5 – Cyrillic

ISO-8859-6 – Arabic

ISO-8859-7 – Modern Greek

ISO-8859-8 – Hebrew

ISO-8859-9 – Western Europe and Americas: Afrikaans, Basque, Catalan, Danish, Dutch, English, Faeroese, Finnish, French, Galician, German, Turkish, Irish, Italian, Norwegian, Portuguese, Spanish and Swedish.

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">

Language – Choose a language: English, French, Korean and ect…

Window Target – this is useful if you want to prevent page framing.

<meta http-equiv="window-target" content="_top">

Notes: if you want to allow robots to index your pages, follow links and disable open directory project, you can use this codes…

Advice: if you are writing it for an XHTML site, then you’ll need a forward slash + a space to make it validate!

——————————–
When you’re finish looking at the options and the information, you should have a table of meta tags with your own infos. It should look like this below…but different.
——————————–

<META NAME="TITLE" CONTENT="Globalnews">
<META NAME="DESCRIPTION" CONTENT="This website was created for user from multiple countries to maintain their computer, remove nasty malware, repair windows operating systems and optimize your operating system to work smoothly and efficiently!">
<META NAME="KEYWORDS" CONTENT="vbscript,articles,jscript,htaccess,tools,wordpress database,installation manual,malware removal,pickaweb provider,computer repairs,recovery,playstation theme,help,dictionary,tutorials">
<META NAME="OWNER" CONTENT="dino.nguyenbrown@gmail.com">
<META NAME="AUTHOR" CONTENT="Lair360">
<META HTTP-EQUIV="EXPIRES" CONTENT="">
<META HTTP-EQUIV="CHARSET" CONTENT="ISO-8859-1">
<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="English">
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html;charset=iso-8859-1">
<META NAME="COPYRIGHT" CONTENT="2008 by Lair360">
<META NAME="RATING" CONTENT="General">
<META NAME="ROBOTS" CONTENT="index,follow">
<META NAME="REVISIT-AFTER" CONTENT="4 weeks">

——————————–
Copyrighted By Lair360