Archive for January, 2009

wordpress - display posts according to categories

Most Wordpress themes come with this feature - Recent Posts - included automatically but if you prefer to display recent posts depending by category you have to some simple modifications.

In case the theme chosen by you has already this feature you must find her, usually in sidebar.php and looks like this:

<h2>Recent Posts</h2>
<ul>
<?php get_archives(’postbypost’, 10); ?>
</ul>

Before you make these changes i suggest to backup sidebar.php to avoid any inconveniences in case something goes wrong. After you found that code all you need to do is to change the code with next one:

<ul>
<?php $recent = new WP_Query(”cat=1&showposts=10″); while($recent->have_posts()) : $recent->the_post();?>
<li><a href=”<?php the_permalink() ?>” rel=”bookmark”>
<?php the_title(); ?>
</a></li>
<?php endwhile; ?>
</ul>

Where say cat = 1 must enter the number assigned to the category for which you want to display recent posts. This number can be found in: Manage - Categories page.
To set how many items to display modify here: showposts = 10, where 10 is the number of items you want to display it.
It is quite simple and I do not think you have problems with implementation.

Place a link to your site with refference to this article,if you want to use this post!!

Link To This Post
1. Click inside the codebox
2. Right-Click then Copy
3. Paste the HTML code into your webpage
codebox

SEO Friendly URL with Mod Rewrite from Apache

What is Mod Rewrite?

According to Wikipedia:

A rewrite engine is a piece of web server software used to modify URLs before fetching the requested item, for a variety of purposes. This technique is known as URL rewriting. A concise URL is easy to remember, and less time-consuming to type in. If the URL can be made to relate clearly to the content of the page, then errors are less likely to happen. More details about mod rewrite here.

Ok now that we have seen what Mod Rewrite actually does we will start on learning how to actually rewrite your URL.

If you have a website and your pages links form are : index.php?id_cat=10 you can optimize them to look like 10_keyword.html with a little effort and knowledges.

Create .htaccess file in root or edit if exists and add the following lines:


#Options +FollowSymLinks
#RewriteEngine on
#RewriteRule ^([0-9]+)-[a-zA-Z0-9-_]*.html$ index.php?id_cat=$1 [L]

If you don’t have knowledges about mod rewrite you can use some mod rewrite generators like Mod rewrite generator 1 , Mod rewrite generator 2 or try Google.

Place a link to your site with refference to this article,if you want to use this post!!

Link To This Post
1. Click inside the codebox
2. Right-Click then Copy
3. Paste the HTML code into your webpage
codebox

Optimization for Google

Important factors in optimizing for Google:

* web domain age
* domain name
* links to the site (IBL - Backlinks) and obviously their quality
* content that is offered to visitors

Web Domain Age

Google gives a great importance to old and stable site’s, this is obvious because is one of the major factors used to rank it in the search engines.

Domain Name

You can choose domain name keywords, then you will have more chances to be on the first page result.

IBL - Backlinks

Links to your site should be from the same niche , links from old websites is important too , they can redirect traffic and increase page rank.

Content

Create unique content, quality and quantity. Google search for sites which are periodically updated and have rich content. Do not try to make clones of your site, duplicate contect is penalized by google.

Place a link to your site with refference to this article,if you want to use this post!!

Link To This Post
1. Click inside the codebox
2. Right-Click then Copy
3. Paste the HTML code into your webpage
codebox

What is PageRank?

In previous posts we talked about what are backlinks and anchor text , today i will talk about pagerank.

Many wonder what is the Page Rank (PR ™) and what role it has in relationship with the search engine optimization (SEO). PageRank is a value between 0 and 10 assigned by the Google algorithm, which quantifies link popularity and trust among other factors.

Formula developed by Google to determine a web pages pagerank:

PR(A) = (1-d) + d (PR(T1)/C(T1) + … + PR(Tn)/C(Tn))

Where:

PR(A) is the PageRank of a page A
PR(T1) is the PageRank of a page T1
C(T1) is the number of outgoing links from the page T1
d is a damping factor in the range 0 < d < 1, usually set to 0.85

It also means that if a page has no links to it (no Backlinks) will receive a low PR of 0.15 (1 - 0.85).
A sure way to gain Page Rank is to submit your site to web directories and make link exchange with websites from the same niche.

Place a link to your site with refference to this article,if you want to use this post!!

Link To This Post
1. Click inside the codebox
2. Right-Click then Copy
3. Paste the HTML code into your webpage
codebox

Anchor text of a link

In previous post , what are backlinks , i was talking about backlinks quality, but still i have not written anything about the anchor text of a backlink. It is an important factor, as well as many others who value a backlink.

What is an anchor text?
I already explained this in Essential Terms post , Anchor text - is the hyperlinked words on a web page , the words you click on when you click a link. For example, in code <a href=http://www.allseotips.com />Free SEO Tips</a> the anchor text is “Free SEO Tips”.

Everybody knows that it’s indicated to have IBL from sites with the same niche, and keywords that makes link to the site must be relevant.
Anchor text of a link becomes more relevant and more powerful if the keyword which connects to the site or page has assignet TITLE on him.

How you see which is the most powerful site on a google search after anchor?
Type on Google allinanchor:keyword

How do you see what anchor have your links?
Go to Google Webmaster Tools> Statistics> What Googlebot sees where you found “in external links to your site”. Those are anchor texts refer to the pages of your site.

Where is good to put links with anchor text?
In your content.

Place a link to your site with refference to this article,if you want to use this post!!

Link To This Post
1. Click inside the codebox
2. Right-Click then Copy
3. Paste the HTML code into your webpage
codebox

What are backlinks?

Basically backlinks are a link from another website to your website.

Backlinks are one of the most important aspects you need to consider when you’re trying to build a higher ranking in the search engines. In conditions in which your page focuses on a topic (for example music), Google analyzes the content of the web page and positions in a search. But how does this work? There are millions of pages talking about the same topic, why would you on the first page in Google? It’s simple, Google count links to your page and will receive a ranking (page rank) following which it will determine the position in the search engine according to the backlinks to your page.

The number of backlinks which recommend a site or a page is an important factor because the number of backlinks influence the positioning of sites to search. The quality of backlinks is an important factor. I said earlier that the number of backlinks sites is an important factor, but if the IBL sites are of poor quality, then this number is almost irrelevant. IBL sites must be of quality,the quality is not given only by the Page Rank, but by age, or the popularity of a site.

Place a link to your site with refference to this article,if you want to use this post!!

Link To This Post
1. Click inside the codebox
2. Right-Click then Copy
3. Paste the HTML code into your webpage
codebox