111
Advanced WordPress SEO: Actionable Advice for Ensuring Your WordPress Content is Found by Nick Herinckx, CEO of Obility Consulting, @nickherinckx Tweet with Mozinar attendees: #mozinar Technical problems or feedback: Please email [email protected]

LAPOO - SEO cho wordpress

Embed Size (px)

DESCRIPTION

Bản gốc mã nguồn wordpress vẫn có nhiều điểm chưa tối ưu tốt cho SEO, tài liệu này sẽ hướng dẫn một số thủ thuật SEO cho wordpress tốt hơn, giúp cải thiện mức độ SEO Onpage cho wordpress.

Citation preview

Page 1: LAPOO - SEO cho wordpress

Advanced WordPress SEO: Actionable Advice for

Ensuring Your WordPress Content is Found

by Nick Herinckx, CEO of Obility Consulting, @nickherinckx

Tweet with Mozinar attendees: #mozinar

Technical problems or feedback:

Please email [email protected]

Page 2: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Who am I?

Page 3: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Why Wordpress?

Section: Housekeeping

Page 4: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Why Wordpress?

Great out-of-the-box on-site optimization

Cre

dit

: SEO

Moz

.org

Page 5: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Why Wordpress?

Easy to find developers

Page 6: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Why Wordpress?

Great out-of-the-box on-site optimization Plugins

Page 7: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Why Wordpress?

Great out-of-the-box on-site optimization Light & fast

Page 8: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Why Wordpress?

Great out-of-the-box on-site optimization Free

Page 9: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Why Wordpress?

Great out-of-the-box on-site optimization Not as robust for complex sites

Page 10: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Why Wordpress?

Great out-of-the-box on-site optimization Little support (but great support community)

Page 11: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Why Wordpress?

Great out-of-the-box on-site optimization Great user based means target for hackers

Page 12: LAPOO - SEO cho wordpress

©OBILITY CONSULTING

HOUSEKEEPING Assumptions, a note on plugins and more

Page 13: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Assumption #1: You Are Familiar with Wordpress

Section: Housekeeping

Page 14: LAPOO - SEO cho wordpress

www.obilityconsulting.com

If I say “plugins”…

…You say “Let me tell you my favorite ones”

Section: Housekeeping

Page 15: LAPOO - SEO cho wordpress

www.obilityconsulting.com

If I say “permalink structure”…

…You say “/%category%/”

Section: Housekeeping

Page 16: LAPOO - SEO cho wordpress

www.obilityconsulting.com

If I say “edit theme PHP files”…

…You say “archive.php or head.php?”

Section: Housekeeping

Page 17: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Assumption #2: You understand intermediate to advanced SEO

Section: Housekeeping

Page 18: LAPOO - SEO cho wordpress

www.obilityconsulting.com

If I say “canonical tag”…

…You say “duplicate content”

Section: Housekeeping

Page 19: LAPOO - SEO cho wordpress

www.obilityconsulting.com

If I say “URL name/value pairs”…

…You say “no more than 3, and there better not be sorting parameters”

Section: Housekeeping

Page 20: LAPOO - SEO cho wordpress

www.obilityconsulting.com

If I say “meta robots tag”…

…You say “noindex and nofollow”

Section: Housekeeping

Page 21: LAPOO - SEO cho wordpress

www.obilityconsulting.com

If I say “I know you’ve never purchased links”…

…You say “no” and start laughing

Section: Housekeeping

Page 22: LAPOO - SEO cho wordpress

www.obilityconsulting.com

If Matt Cutts enters the room…

…You stop laughing

Section: Housekeeping

Page 23: LAPOO - SEO cho wordpress

www.obilityconsulting.com

If I say “Rand Fishkin”…

…You say “who’s that?”

Section: Housekeeping

Page 24: LAPOO - SEO cho wordpress

www.obilityconsulting.com

In short: you understand SEO

Section: Housekeeping

Page 25: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Some of our solutions will utilize

plugins.

*I favor solutions that do not utilize plugins

Section: Housekeeping

Image credit: http://www.techtate.com

Page 26: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Housekeeping

I don’t always use plugins

But when I do, I prefer

Yoast SEO Cre

dit

: Eu

ro R

SCG

Wo

rld

wid

e

Page 27: LAPOO - SEO cho wordpress

©OBILITY CONSULTING

DUPLICATE CONTENT IN

WORDPRESS Pagination, Archives & Inserting Unique Content

Page 28: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Where does this problem stem from?

Tag Pages

Section: Duplicate Content

Page 29: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Where does this problem stem from?

Tag Pages

Section: Duplicate Content

Category Pages

Page 30: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Where does this problem stem from?

Tag Pages

Section: Duplicate Content

Category Pages

Date Archive Pages

Page 31: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Where does this problem stem from?

Tag Pages

Section: Duplicate Content

Category Pages

Date Archive Pages

Author Pages

Page 32: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Where does this problem stem from?

Tag Pages

Section: Duplicate Content

Category Pages

Date Archive Pages

Author Pages

Pagination Pages

Page 33: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Example: Tag pages

Section: Duplicate Content

Page 34: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Example: Date pages

Section: Duplicate Content

Page 35: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Example: Pagination

Section: Duplicate Content

Page 36: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What are Specific SEO Issues?

Section: Duplicate Content

Page 37: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What are Specific SEO Issues?

Full post text on homepage, tag pages, category pages, etc.

Section: Duplicate Content

Page 38: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What are Specific SEO Issues?

Section: Duplicate Content

No value-added content for searchers

Page 39: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What are Specific SEO Issues?

Section: Duplicate Content

Pagination pages include duplicate

content

Page 40: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What are Specific SEO Issues?

Section: Duplicate Content

Heavy site-wide sidebar links to these

pages

Page 41: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What are Specific SEO Issues?

Section: Duplicate Content

Many themes don’t allow for custom META tags on

these pages

Page 42: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What can we do about the full post being displayed on all archive pages?

Page 43: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What can we do about the full post being displayed on all archive pages?

ANSWER: replace “the_content” in the PHP files with “the_excerpt”

Page 44: LAPOO - SEO cho wordpress

www.obilityconsulting.com

- Located inside

your PHP files

- Shows full blog post content

What to do about full post text

Section: Duplicate Content

The_Content - Located inside

your PHP files

- Shows only first 55 characters of post.

The_Excerpt

Page 45: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about full post text

Section: Duplicate Content

Page 46: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about full post text

Section: Duplicate Content

Page 47: LAPOO - SEO cho wordpress

www.obilityconsulting.com

- Archive.php

- Index.php

- Other custom theme PHP files that control

archive type pages

Where to look for “the_content”

Section: Duplicate Content

Page 48: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What can we do about the non- uniqueness?

Page 49: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What can we do about the non- uniqueness?

ANSWER: Noindex and exclude from XML sitemap

Page 50: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about their non-uniqueness

Section: Duplicate Content

Page Type Meta Index?

Meta Follow?

XML Sitemap Robots.txt

Page Yes Yes Include Allow

Page 51: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about their non-uniqueness

Section: Duplicate Content

Page Type Meta Index?

Meta Follow?

XML Sitemap Robots.txt

Page Yes Yes Include Allow

Post Yes Yes Include Allow

Page 52: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about their non-uniqueness

Section: Duplicate Content

Page Type Meta Index?

Meta Follow?

XML Sitemap Robots.txt

Page Yes Yes Include Allow

Post Yes Yes Include Allow

Categories Yes Yes Include Allow

Page 53: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about their non-uniqueness

Section: Duplicate Content

Page Type Meta Index?

Meta Follow?

XML Sitemap Robots.txt

Page Yes Yes Include Allow

Post Yes Yes Include Allow

Categories Yes Yes Include Allow

Tags No Yes Exclude Allow

Page 54: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about their non-uniqueness

Section: Duplicate Content

Page Type Meta Index?

Meta Follow?

XML Sitemap Robots.txt

Page Yes Yes Include Allow

Post Yes Yes Include Allow

Categories Yes Yes Include Allow

Tags No Yes Exclude Allow

Date Archives No Yes Exclude Allow

Page 55: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about their non-uniqueness

Section: Duplicate Content

Page Type Meta Index?

Meta Follow?

XML Sitemap Robots.txt

Page Yes Yes Include Allow

Post Yes Yes Include Allow

Categories Yes Yes Include Allow

Tags No Yes Exclude Allow

Date Archives No Yes Exclude Allow

Pagination No Yes Exclude Allow

Page 56: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about their non-uniqueness

Section: Duplicate Content

Page Type Meta Index?

Meta Follow?

XML Sitemap Robots.txt

Page Yes Yes Include Allow

Post Yes Yes Include Allow

Categories Yes Yes Include Allow

Tags No Yes Exclude Allow

Date Archives No Yes Exclude Allow

Pagination No Yes Exclude Allow

Author (default page) No Yes Exclude Allow

Page 57: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about their non-uniqueness

Section: Duplicate Content

Page Type Meta Index?

Meta Follow?

XML Sitemap Robots.txt

Page Yes Yes Include Allow

Post Yes Yes Include Allow

Categories Yes Yes Include Allow

Tags No Yes Exclude Allow

Date Archives No Yes Exclude Allow

Pagination No Yes Exclude Allow

Author (default page) No Yes Exclude Allow

Author (custom page) Yes Yes Include Allow

Page 58: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What to do about their non-uniqueness

Section: Duplicate Content

Page Type Meta Index?

Meta Follow?

XML Sitemap Robots.txt

Page Yes Yes Include Allow

Post Yes Yes Include Allow

Categories Yes Yes Include Allow

Tags No Yes Exclude Allow

Date Archives No Yes Exclude Allow

Pagination No Yes Exclude Allow

Author (default page) No Yes Exclude Allow

Author (custom page) Yes Yes Include Allow

*Yoast SEO plugin allows for this level of control

Page 59: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

Can we make these pages more useful for users?

Page 60: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

Can we make these pages more useful for users?

ANSWER: Create a new PHP page for each archive page type, and insert copy

into the PHP files directly

Page 61: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Inserting Text Into Archive Page Types Date archives, categories, tags, author pages, etc.

Section: Duplicate Content

Inserting unique content on

author archive page types!

Page 62: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Inserting Text Into Archive Page Types Date archives, categories, tags, author pages, etc.

Section: Duplicate Content

Inserting unique content on

category archive page types!

Page 63: LAPOO - SEO cho wordpress

www.obilityconsulting.com

How do we do this inside Wordpress?

Section: Housekeeping

Page 64: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Inserting Text Into Archive Page Types Date archives, categories, tags, author pages, etc.

Section: Duplicate Content

We will have to create new PHP files!

*but it’s an easy copy/paste job

Page 65: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Inserting Text Into Archive Page Types Understanding Wordpress PHP Hierarchy

Section: Duplicate Content

Page Type Default Override for all category pages

Override for individual categories

Example PHP file name

Categories archive.php category.php category-{categoryslug}.php

category-marketing.php

Page 66: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Inserting Text Into Archive Page Types Understanding Wordpress PHP Hierarchy

Section: Duplicate Content

Page Type Default Override for all category pages

Override for individual categories

Example PHP file name

Categories archive.php category.php category-{categoryslug}.php

category-marketing.php

Tags archive.php tag.php tag-{tagslug}.php tag-events.php

Page 67: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Inserting Text Into Archive Page Types Understanding Wordpress PHP Hierarchy

Section: Duplicate Content

Page Type Default Override for all category pages

Override for individual categories

Example PHP file name

Categories archive.php category.php category-{categoryslug}.php

category-marketing.php

Tags archive.php tag.php tag-{tagslug}.php tag-events.php

Author archive.php author.php author-{authorname}.php

author-nick.php

Page 68: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Steps for creating a custom page with SEO optimized text for a tag called “marketing”

Section: Housekeeping

Page 69: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Inserting Text Into Archive Page Types Date archives, categories, tags, author pages, etc.

Section: Duplicate Content

Step 1: Go to your PHP files

Page 70: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Inserting Text Into Archive Page Types Date archives, categories, tags, author pages, etc.

Section: Duplicate Content

Step 2: On server, create “tag-marketing.php” file

inside theme PHP file directory

Page 71: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Inserting Text Into Archive Page Types Date archives, categories, tags, author pages, etc.

Section: Duplicate Content

Step 3: Copy code from existing

“archive.php” file and pate in new “tag-marketing.php” file.

Page 72: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Inserting Text Into Archive Page Types Date archives, categories, tags, author pages, etc.

Section: Duplicate Content

Step 4: Locate where the body text for the

page begins

Step 5: Insert custom tag text above where

posts are displayed

Page 73: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

THEN WE GET THIS!!!

Page 74: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What can we do about pagination?

Page 75: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What can we do about pagination?

ANSWER: Yoast SEO inserts rel=“next” and rel=“prev” in the head of paginated

pages

Page 76: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

Page 77: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What about canonicalization?

Page 78: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What about canonicalization?

ANSWER: Yoast SEO includes these on all Wordpress pages

Page 79: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

Page 80: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

Wordpress itself only shows canonical link elements on single pages. Yoast SEO places the canonical tag on all page types.

Page 81: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What if I use a plugin that utilizes URL parameters?

Page 82: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What if I use a plugin that utilizes URL parameters?

ANSWER: Utilize your robots.txt or Google Webmaster Tools

Page 83: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

Page 84: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

• Create an actual robots.txt file and place it in server root to override the virtual Wordpress one

• Use robots.txt to disallow problematic site section

Or…

• Block problematic parameters from within Google Webmaster Tools

Page 85: LAPOO - SEO cho wordpress

www.obilityconsulting.com

In Summary

Section: Duplicate Content

Make sure theme uses “the_excerpt” in archive PHP files instead of “the_content”

If you want to keep archive page types, create a separate PHP file for each an insert on-page copy

Noindex archive page types if not unique

Exclude archive page types from XML Sitemap

Implement canonical tag on all pages using Yoast SEO

Implement pagination tags using Yoast SEO

Use robots.txt file to exclude dynamic pages created by plugins, or use Webmaster Tools to tell Google to ignore problematic name/value pairs

Page 86: LAPOO - SEO cho wordpress

©OBILITY CONSULTING

IMPLEMENTING AUTHORSHIP Author Bios on Author Posts

Page 87: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Quick Authorship Example

Section: Authorship

Page 88: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What we need

1: A Google+ Profile

Page 89: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What we need

2. Link to publications in the “contributor to” section from within your Google+ profile

Page 90: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

What we need

3. Add rel=“author” tag to blog post page in a link to your Google+ profile

Page 91: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Rel=Author Tag Implementation

Section: Authorship

Page 92: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

How to Get Google+ Links on Author Posts

Page 93: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

How to Get Google+ Links on Author Posts

Option 1: Edit single.php file (or the one that displays your blog posts) to output the author bio on the page. Then authors can include a Google+ link on their own.

Page 94: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Implementing Authorship

Section: Authorship

Page 95: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Placing Author Bio on Blog Posts

Section: Authorship

<div class="author"> <?php if (function_exists('get_avatar')) { echo get_avatar(get_the_author_meta('user_email'), '70'); } else {?> <img src="<?php echo get_template_directory_uri();?>/images/author.jpg" alt="" class="imgleft authorpic" /> <?php } ?> <h5>About <?php the_author();?></h5> <?php the_author_meta('description'); ?> </div>

Page 96: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Duplicate Content

How to Get Google+ Links on Author Posts

Option 2: Manually add to posts an author byline with Google+ profile links

Page 97: LAPOO - SEO cho wordpress

©OBILITY CONSULTING

ADVANCED ON-SITE

CONSIDERATIONS A note on permalinks

Page 98: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Advanced On-Site

For very large blogs, permalink structure is one of the most common mistakes I see with Wordpress installations.

Page 99: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Permalinks for Blog Posts

Which one is best?

/%postname% / %post_id%/

/%category% / %postname%/

/%post_id% / %postname%/

/%year% / %category% / %postname%/

Section: Advanced On-Site

Page 100: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Permalinks for Blog Posts

Most People Select:

/%postname% / %post_id%/

/%category% / %postname%/

/%post_id% / %postname%/

/%year% / %category% / %postname%/

Section: Advanced On-Site

Page 101: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Advanced On-Site

But that’s not ideal for very large blogs!

Page 102: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Permalinks for Blog Posts

“For performance reasons, it is not a good idea to start your permalink structure with the category, tag, author, or postname fields. The reason is that these are text fields, and using them at the beginning of your permalink structure takes more time for WordPress to distinguish your Post URLs from Page URLs (which always use the text “page slug” as the URL), and to compensate, WordPress stores a lot of extra information in its database (so much that sites with lots of Pages have experienced difficulties). So, it is best to start your permalink structure with a numeric field, such as the year or post ID.”

Section: Advanced On-Site

What Wordpress Says

Page 103: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Advanced On-Site

Why does it cause slowdown?

Page 104: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Section: Advanced On-Site

Consider the URL /mycat/mypost/

Page 105: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Permalinks for Blog Posts

You Should Select:

/%postname% / %post_id%/

/%category% / %postname%/

/%post_id% / %postname%/

/%year% / %category% / %postname%/

Section: Advanced On-Site

Page 106: LAPOO - SEO cho wordpress

©OBILITY CONSULTING

MAINTAINING SEO COMPLIANCE Tools for verifying SEO compliance

Page 107: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Maintaining Compliance Ongoing

Section: SEO Compliance

Page 108: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Maintaining Compliance Ongoing

Section: SEO Compliance

Page 109: LAPOO - SEO cho wordpress

www.obilityconsulting.com

Maintaining Compliance Ongoing

Section: SEO Compliance

Page 110: LAPOO - SEO cho wordpress

www.obilityconsulting.com

What did we talk about?

Housekeeping

Addressing Duplicate Content in Wordpress

Implementing Authorship

Advanced On-Site Considerations

Maintaining SEO Compliance

Page 111: LAPOO - SEO cho wordpress

Q&A Time!

@nickherinckx

www.obilityconsulting.com

[email protected]

http://seomoz.org/webinars