WordPress Tutorial Let me share with you the most comprehensive optimization guide: First of all, WordPress SEO can be said to be very advantageous, and doing a good job in SEO optimization is the guarantee of WordPress website traffic; this article The tutorial includes how to optimize WordPress, how to set up WordPress SEO, etc. I hope it will be helpful to friends in need!
Simply speaking, SEO is divided into two parts: page optimization and link building. Page optimization is the foundation, while link building is the focus. Both are indispensable.
Content is king
Before explaining specific SEO techniques, let’s emphasize that content is king. High-quality, original content is SEO Guarantee, it is crucial to insist on doing this well. Create valuable content for users. Original articles and special topics will bring you unexpected gains. Search engines favor original content. Even if it is reprinted countless times, search engines know where the original address is.
Page optimization
Page optimization is to optimize the page according to SEO requirements, mainly involving title, URL, Meta tag, H1 H2 The use of H3 and other tags, keyword density and other aspects.
Title
The title of the webpage directly affects the ranking of the page in the search results. Whether the user reads it in the search engine results, Google Reader, Weibo, or elsewhere When I read your article, the first impression will be your title, so this is how headline-making comes into being. Although we are not encouraged to engage in headline-making, the most basic optimization is still necessary.
There are two points for optimizing the title:
1. The title contains the keywords of the article, 1-2 keywords are enough.
2. Titles can generally be designed to be arranged in reverse order, with log pages and article titles placed in front of the website title.
Link (URL)
WordPress supports pseudo-static links which has brought great convenience to SEO. It doesn’t really matter which method Permalink is chosen. Personal recommendation Try to choose one with %post-name%, so that if %post-name% contains keywords, it will also be helpful to SEO ranking.
For example, if the URL of an article is https://xxx.com/article/wordpress-seo/, it contains the keyword WordPress SEO.
Also make sure there is a rel="canonical" tag in the page to avoid duplicate content and link uniqueness.
Meta tag
Google and Baidu no longer use Meta Keywords and Description as ranking factors, but adding Meta Description is still helpful for website traffic. , because Google’s search results directly use Meta Description to describe the page. When users search and see a good description, it is easier to come to your website. Keywords are basically ineffective. Sometimes they are counterproductive. , Baidu will think you have excessive SEO.
In WordPress, we can add Meta Description to any page, but we are very lazy. My personal suggestion is that you only need to add it to the homepage and log page. If you enter a summary on the log page, use the summary as the Meta Description. If not, get the first 120 words of the article as Description.
Add the following code in the header of the theme:
<?if (is_home() && $paged < 2){ //替换成你自己博客的描述 $description = "我爱水煮鱼是一个关注 WordPress 开源博客平台应用和互联网的 IT 博客。"; } elseif (is_single()){ if ($post->post_excerpt) { $description = $post->post_excerpt; } else { $description = substr(strip_tags($post->post_content),0,120); } } ?> <meta name="description" content="<?=$description?>" />
Semantic
Semantic web page code can be better recognized by search engine crawlers , so use XHTML and CSS to reconstruct the website, and try to separate CSS and Javascript code from HTML files. Now you can also use HTML5 to reconstruct web pages. Streamlined web page code can effectively improve the signal-to-noise ratio problem and allow search crawlers to pay more attention to the content itself.
Use of tags such as H1 H2 H3
First of all, there is only one H1 tag on a page. The most important title on the page is given the H1 tag, so on the homepage or list page , the title of the website uses H1 tags, while on the log page, the title of the article uses H1 tags, and the website title uses DIV. In fact, this is how WordPress’ default theme is set up.
In addition to setting the H1 tag, H2 H3 tags must also be set for the subtitles in the article content as required. This not only makes the article content clearer, but also has better semantics and is also helpful for SEO. Google likes semantic content,
You can use my WordPress article directory plug-in to further improve SEO results.
If you output full text on the homepage or other category list pages, you can use the technique of dynamically modifying the WordPress Heading tag to make the tag more semantic.
Picture Optimization
Although the latest and most awesome image recognition technology is constantly coming out, no matter how awesome it is, there is still no way to compare with the eyes of others, so I gave the picture a name. A good name is very important. For example, in the picture above "I love boiled fish, more than 70% of the traffic comes from search engines", I named it "fairyfish-seo-traffic.png". Instead of the incomprehensible "12414124124.jpg" and giving it an alt tag, the search engine will immediately understand the meaning of this picture when it sees it.
Link building
We introduced page optimization earlier. When your page is optimized, you need search engines to include your articles and rank them high. , so how do you get it included by search engines and ranked high? That’s the thing about link building.
Actively submit to search engines
Basically, if WordPress makes a blog, search engines will quickly include it. If you want search engines to include it as soon as possible, you can actively submit it. , all major search engines have a "submit URL" function. For example:
● Google: http://www.google.com/addurl/?hl=zh-CN
● Baidu: http:/ /www.baidu.com/search/url_submit.html
Sitemap
Sitemap is a link and extra that contains all the public pages and documents on your website An XML file of information that tells search engines which pages on the site are available for crawling. Sitemap files list the URLs in your site along with other metadata about each URL (when it was last updated, how often it changes, how important it is relative to other URLs on the site, etc.) so that search engines can more intelligently Crawl the website. The Google Sitemaps service is part of Google Webmaster Tools.
For WordPress blogs, we can use the "Simple SEO" of the "WPJAM Basic" plug-in to generate sitemap files.
In-site link optimization
The link system architecture of a website is very important. For users, a good link system architecture can allow users to immediately understand the main purpose of this website. What content is introduced and the content he needs is quickly found. For search engines, a good link architecture allows the pages of the site to be correctly indexed by search engines and ensures that Google crawlers can correctly find the pages.
● Keep important pages with links on the homepage. The homepage of the website is the most important page, and it is also the page that search engines visit most often. Therefore, we should try to display as many important page links as possible on this page. front page. But also be careful not to exceed 100 links.
● All pages in the site must have links to the homepage
● Create breadcrumb links and establish clear navigation and hierarchical structure for the website.
● Related web page content should be linked to each other, such as the "related articles" function below the article. It is recommended to install relevant log plug-ins.
● Relevant keywords link to related articles. For example, if you have an article about "key1" in your previous log, you can link "key1" to the previous page in future articles to create an association. sex.
● Remember to clear invalid links regularly.
Get Backlinks
Links from external links to your website are called "backlinks". Backlinks are how search engines measure the quality of your website. An important basis is the focus of SEO work. How to increase backlinks?
● Provide high-quality original content and naturally get a large number of backlinks. High-quality original content can easily be reprinted by countless websites. Copyright-conscious websites will leave your link address on their website.
● Add the website to relevant directories, such as DMOZ open directory, high-quality website navigation station, and website interlinks related to the theme of your website.
● Make some summary topics, lists, and indexes. People like to collect them, so as to win backlinks. For example: Top ten free software that must be installed on iPad.
● Publish articles on large websites related to the website theme, such as guest blogging.
● Provide free services and products, such as providing free WordPress themes for people to download. The more people use it, the more links you get.
WordPress SEO Summary
That’s all about WordPress SEO. WordPress itself is an open source program that does a good job in SEO. If you continue Coupled with some optimization and improvements, your blog’s traffic will definitely increase quickly. I will update, correct and add new content to this article over time.
The above is the detailed content of The Most Comprehensive WordPress SEO Optimization Guide (Collection). For more information, please follow other related articles on the PHP Chinese website!