What is the link nofollow attribute?

About nofollow:

At present, most of the blog and the establishment of systems have added the nofollow attribute. In other words, leave links on other people’s blog to get the PR value of the approach is futile. (Especially the celebrity blog, basically use nofollow)

If you are worried about the site being intrusive spam links, nofollow is a very good “refuse Link Firewall.” nofollow does not mean that the search engines do not include a link, but do not count backlinks only.

We know that backlinks are the main index to calculate the value of Google PR. To add back links, SEO cheating in a lot of forums and blog publishing content with irrelevant links. The existence of these spam links to search engines to assess the quality of web cause some degree of trouble. nofollow is the Google, Yahoo, MSN properties in response to a link spam (Spam) introduced, this property should now be widely adopted.

If there is a link to the previous page A page B, but A link to this page to add a rel = “nofollow” tagging, the search engines do not count towards the A page B page backlinks.

What is the link nofollow attribute

The so-called link nofollow attribute are those that although you can reach through hyperlinks to external sites, but this does not give the external website links to increase the weight, this will not have any impact site generates links, add nofollow link attribute does not represent linked to the site to vote through the link nofollow attribute tells the search engine web link within the meaning of this link I can not control, the site has nothing to do with this site. Links normally do when we should pay attention to prevent others add nofollow attribute so that you actually think it would be a one-way link to link, and this is relatively rare, but Bukebufang. General common blog programs are default blog message inside URLs added nofoloww properties, so let through blog comments to improve their site’s ranking has become impossible.

How to add a link nofollow property

To add a link nofollow property is very simple, just add “rel = ‘nofollow'” attribute in the link can be.

There are comments on a blog as spam:

<a href="http://www.52wordpress.net/"> keywords </a>

The following operations, namely the nofollow:

<a href="http://www.52wordpress.net/" rel="nofollow"> Keywords </a>

Search engine in the calculation of PR value, the link will not be counted.
This is for the following SEOer very important.

You can add nofollow internal links site. For example: Contact us About Us link, privacy protection, company profiles, website background like they could be nofollow out, doing the PR value of the home will not be transferred to them. Because they have too much PR value is obviously useless.

WordPress Function Daquan

1. bloginfo ()

As the name suggests, this function is mainly used to display blog information; and according to different parameters can be used to display information in different parts of blog commonly used are the following:

bloginfo ( ‘name’) displays blog title, such as “fat horse”; the default (no write parameter) of the output;

bloginfo ( ‘description’) display blog description section, such as “knowledge-sharing networks · enjoy a happy life”;

bloginfo ( ‘url’) output blog URL address, such as http://www.qintag.com;

bloginfo ( ‘rss2_url’) show the RSS2.0 feed blog address, such as http://www.qintag.com/feed;

bloginfo ( ‘template_url’) is used to get WordPress blog template address;

bloginfo ( ‘charset’) show blog coding methods, such as “UTF-8”;

A common use bloginfo () function has the following composition:
<a href=”<?php bloginfo(‘url’); ?> “title =” <? php bloginfo ( ‘description’);?> “> <php bloginfo ( ‘name’);??> </ a >

As this form is usually used to add blog at the bottom of the information, such as the Copyright @ Moderate wind, often used in the theme template.

Note that bloginfo () function can only display the output parameters, if you want to use these values in PHP statement obtained, you need to use get_bloginfo () function, the function and bloginfo () using the same parameters, to obtain the same result.

2. wp_title ()

This function is used to display the title of the page, such as a page in the article, the article title is displayed; in the category page, the category name is displayed; and so on.

wp_title () function with three parameters, namely wp_title ( ‘separator’, echo, seplocation), wherein the separator is split between the symbolic title and the rest of the default is >>; echo is a bool variable, take the true heading, will take the false title as a PHP parameter returns; seplocation delimiter position, whichever is defined delimiter right back in the title, take any other value, it represents the delimiter in front of the title.

For example, shaped like a folder header.php theme in a piece of code:
<Title>
<? Php wp_title ( ‘|’, true, ‘right’);?>
<Php bloginfo ( ‘description’)??;> -; <Php bloginfo ( ‘name’)??>
</ Title>

3. wp_get_archives ()

This function is used to get the blog article archive by setting the function parameters, you can get a variety of ways, such as monthly, yearly and so on.

wp_get_archives () after the function can also be with a variety of parameters, but all parameters need to use & connection, and in single quotes ( ‘) to a character string passed to the function, the form wp_get_archives (‘ type = monthly & format = html & show_post_count = 1 & limit = 10 ‘).

As the meaning of the parameters are described below:
type = monthly archive article represented by month, you can use the yearly, daily, weekly, etc. instead of monthly expressed by year, day, and week display articles archive;

format = html representation usual in HTML <li> Format Article list;

show_post_count = 1 denotes a display belongs to the category (year, month, etc.) the number of articles in the article archive later, the parameter is a bool value;

The maximum number of articles limit = 10 denotes a display archived 10, more than the number, the excess is not displayed;

Although the parameters slightly, it is slightly more complicated, but in fact just pay attention to type, show_post_count and limit the three parameters can be.

4. wp_list_categories ()

And wp_get_archives () function is similar, wp_list_categories () function is used to obtain classified information on blog articles, and you can set the appropriate function parameter to display it. Similar to the function parameters and wp_get_archives () function, you need to use to connect & , in single quotes ( ‘) to pass a character string shaped like wp_get_archives (‘ orderby = name & order = ASC & show_count = 1 & use_desc_for_title = 1 & feed = Feed & exclude = 2,5 & number = 10 ‘).

As examples, the significance of the function of each parameter is as follows:

orderby = name represents the name of the category in alphabetical order of display classified information, can be replaced with name ID and the like;

represented in alphabetical order = ASC category name displayed in ascending classified information, the ASC to DESC indicates descending;

show_count = 1 the number of articles in the category name after each display belong to the classification;

use_desc_for_title = 1 is described using the classification information for each category name hyperlink to add a title attribute;

feed = Feed: next to each add a category called “Subscribe to the” hyperlink, providing RSS feeds of the classification;

exclude = 2,5: ID for the removal of class 2 and 5 in the category displayed; can also be used include = 2,5 indicates that only show ID to the class 2 and 5;

number = 10: Displays only the first of the 10 categories.

5. get_the_category ()

get_the_category () function is used to return an array of some of the attributes of the current article belongs to the category composed, the array includes the following:

cat_ID: the current category ID (you can also write ‘term_id’);

cat_name: the name of the current category (also written as ‘name’);

category_description: The current classification descriptions (also written as ‘description’);

category_count: belonging to the current classification of the number of articles (also written ‘count’).

Use of specific methods, we passed a few sentences to explain the following:

Shaped like get_the_category () -> cat_ID statement returns the current article category ID number;

Shaped like get_the_category () -> description of statements, the return current article describes the classification of; and so on.

6. the_category ()

This function returns the current article belongs to the category name, and is a hyperlink in the form of articles category.

The default no-argument form the_category () to display the category name directly in the form of hyperlinks, read: Gifts Available;

You can keep up in the function parameters such as separators to format the output, such as the_category ( ‘-‘), if the current articles belonging to two or more classification, you can display the form: Gifts Available – empirical knowledge; such as belong to only one category, is displayed in such form: Recommend fine.

7. category_description ()

The function to classify the ID as an input to give a description of the classification and often echo, get_the_category () with the use of the current classification describes the output:

echo category_description (get_the_category () -> cat_ID);

The above statement, get_the_category () has preserved an array of the current classification of information; cat_ID array ID for the classification; the ID input to category_description () function, you can get a description of the classification; then use echo to output .

But after the test, use the following statement can achieve the same functionality and the above statement:

echo category_description ();

This may be because the function in case of default no parameter input will output the current classification described it.

This paper describes some WordPress conditions to function, to determine whether certain conditions were met, for example, is currently at home; whether the current is an author, and so on.

8. is_home ()

is_home () to determine whether the blog page is currently displayed blog page, returns a Bool value if it is in the home, then return TRUE;.

Otherwise, it returns FALSE.

This function is used to control the blog sidebar display, often use the following code snippet:

<? Php
if (is_home ()) {
// This is the content that should be displayed in the blog page
} Else {
Home // This non-blog content should be displayed
}
?>

9. is_archive ()

is_archive () to determine whether the contents of the currently displayed page is the blog archives, such as archive by date or by category archives, and so on; and its is_home () functions, return a Bool value.

10. is_page ()

is_page () function to determine whether the contents of the currently displayed page blog is independent of (page), such as “on the bamboo wind” and other page; it also returns a Bool value.

We can function in the template is determined whether the current page is a stand-alone, to decide whether to display the currently displayed article Published like.

11. is_paged ()

This function is used to determine whether the current article content because of excessive paging display; <! – Nextpage->

Note that, if you manually add a tag to write articles, to force a page break, then this function and will not be return TRUE.

12. is_page_template ()

is_page_template () function with a parameter required, usually in the following manner:

is_page_template ( ‘guestbook.php’);

Thereby judging individual pages (page) whether the currently displayed template guestbook.php parameters shown; if not with arguments, the function returns the current page independently whether to use the template.

13. is_single ()

is_single () to determine whether the contents of the currently displayed page is a separate article which can be followed by three kinds of parameters, one is the article ID;. One is the title of the article (title); one is the article name (slug, a short, form description of the title of the article); or you can use a combination of three kinds of parameters, thereby to determine whether the contents of the current page is specific to an article.

A simple example is as follows, we can are several ways to determine whether the contents of the currently displayed is Text:

is_single ( ‘808’);

is_single ( ‘good use WordPress must know the function (b)’);

is_single ( ‘functions-must-known-using-wordpress-second’);

is_single ( ‘808’, ‘good use WordPress must know the function (b)’,

‘functions-must-known-using-wordpress-second’);

Here, the bamboo wind above the need for a way to do the final Description: This function is followed by three parameters, there is a priority, if the first argument qualifying returns TRUE; otherwise, it returns FALSE; seemingly behind argument does not make sense.

14. is_category ()

This function is used to determine whether the contents of the currently displayed page is a category page, such as site-related; without which the parameter of the function returns a Bool value.

15. is_tag ()

is_tag () to determine whether the currently displayed page is a tab page, such as WordPress; thereafter do not need to talk to the parameters of the function also returns a Bool value.

16. is_date ()

This function is used to determine whether the content currently displayed in chronological archive page, such as in April 2009, or April 8, 2009, and so on.

17. is_day (), is_month (), is_year ()

These functions are used to determine whether the contents of the currently displayed by day, month or year archive page. They is_date () is similar, except that the more specific archiving time only.

18. is_author ()

This function is used to determine whether the contents of the currently displayed page to the author archives, such as wind Zhuying blog’s admin page author.

19. is_admin ()

is_admin () function is used to determine whether the current page in the control panel or the administrator panel page.

In this article, to introduce function except get_bloginfo () In addition, almost all will be used in WordPress theme sidebars some functions, such as get_posts () and so on.

20. get_bloginfo ()

The function and our previous article must know good use WordPress functions (a) described bloginfo () function to achieve nearly the same functionality as the main blog used to display information; And according to different parameters of the heel, the output will be different from blog information.

When not followed by parameters, get_bloginfo () to display the blog name, as in “the bamboo wind”;

Followed by other parameters, you can display the corresponding information, such as get_bloginfo ( ‘description’) for displaying the blog description;

Other parameters may also be used, including name, url, wpurl and admin_email etc. But as it relates to bloginfo () function to achieve the same result, therefore, in the case of bloginfo can be achieved, the bamboo wind is not recommended get_bloginfo () function .

WordPress Template: Chinese People Notch Themes

Speaking a foreign WordPress template, it has been overseas Chinese theme has always been a lot of people’s acceptance and love, mainly because of compatibility foreign theme, design texture beautiful, and powerful back-end functions. Today we see this WordPress template, more features or the texture of his beauty, first Obscure background, very beautiful. The second is a large slide effect to give a good visual enjoyment.

WordPress template description: two-column blog theme, black theme, the theme of the popular foreign producers new WP themes production, comes thumbnail feature is to upload photos and customize the characteristics of the image can be. At the same time has a strong background customization features, you can customize the bottom and top of the code information, and with a slideshow feature, you can set the directory to your slide show in the background, you can customize a slide show in which section. WordPress template thumbnail is uploaded to the left and you can set featured image has been finished.

 

023720EzI wordpress模板:国人汉化Notch主题

 

WordPress tips: Do not use .htaccess widget start page Gzip compression

Without the use of plug-in .htaccess start page Gzip compression by Enabling Compression Apache to achieve.

The following http://www.163zuowen.com/ this site, for example the actual operation.

1. First we measured about 163 composition network is enabled gzip compression

Here are a few to test whether the site URL Enable gzip compression:

http://tool.chinaz.com/Gzips/Default.aspx

http://gzip.zzbaike.com/

http://www.websiteoptimization.com/services/analyze/

As shown no gzip compression test:

2、Through FTP to download your. Htaccess file back, open with DW

3、Include the following syntax in the .htaccess file, then save the upload overwrites.

 

 1 <IfModule mod_deflate.c>
 2 # Insert filters
 3 AddOutputFilterByType DEFLATE text/plain
 4 AddOutputFilterByType DEFLATE text/html
 5 AddOutputFilterByType DEFLATE text/xml
 6 AddOutputFilterByType DEFLATE text/css
 7 AddOutputFilterByType DEFLATE application/xml
 8 AddOutputFilterByType DEFLATE application/xhtml+xml
 9 AddOutputFilterByType DEFLATE application/rss+xml
10 AddOutputFilterByType DEFLATE application/javascript
11 AddOutputFilterByType DEFLATE application/x-javascript
12 AddOutputFilterByType DEFLATE application/x-httpd-php
13 AddOutputFilterByType DEFLATE application/x-httpd-fastphp
14 AddOutputFilterByType DEFLATE image/svg+xml
15 # Drop problematic browsers
16 BrowserMatch ^Mozilla/4 gzip-only-text/html
17 BrowserMatch ^Mozilla/4\.0[678] no-gzip
18 BrowserMatch \bMSI[E]!no-gzip !gzip-only-text/html
19 # Make sure proxies don't deliver the wrong content
20 Header append Vary User-Agent env=!dont-vary
21 </IfModule>

We have to test, to see compression 82.67%

 

wordpress plugin Really Static Static really use

Really Static bit like pulling tool station, so if you use it to generate pure static, make sure your original pseudo-static pages or dynamic link is accessible, it can work according to the target. If the original is a dynamic page, Really Static inside a rewrite settings, Advanced (Advanced Settings), the name can be set to generate the corresponding html, this I do not really understand, so the best way is to come directly generated based on the pseudo-static.

Word is, to get Really Static work smoothly with the proviso that your blog will be generated for each page of the original is purely static accessible.

1, Really Static settings first: Source (source file)

url to wordpressinstalltion: fill in the root directory of your wordpress installation
url path to the actuall used templatefolder: Fill in your wordpress theme path of

2, Really Static second set: Destination (save path)

There are three preservation methods work with ftp (via ftp save), work with sftp (via sftp saving) and work with local filesystem (direct system save). I chose to save the system directly, fill in the address to fill an absolute address, usually in a virtual machine can be found in the space of the control panel, you can ask if you really do not know the space business.

Domainprefix for your cached files: This is the cache path, I press him to fill the site root tips address
Url to the templatefolder: css styles save path, if you fill this, remember the last put your theme css manually copy into this folder, I feel it does not automatically copied.

3, Really Static third set: Setting (Settings)
4, Really Static Fourth set: Reset (Reset)

This is used to regenerate the file to use, if it is the first secondary achievements do not need him, need to completely regenerate again, to the point where the first “reset filedatabase” button, then the fifth option “Manual Refresh” POINT “write all files”, it can be regenerated.

5, Really Static fifth set: Manual Refresh (manual update)

There are two ways to generate a single article and log generation whole generation

6, Really Static setting Sixth: Advanced (Advanced Settings)

Update frequency, there are three options: 1) When the log create, modify and delete time. 2) updated every 24 hours. 3) Really Static is always running.

Well, Really Static is set on the main these options, other options are of no use, you can be skipped.

It is worth saying is that if the Chinese blog, plus on your website, there are Chinese characters, the generated static file name if you put% in the form of such a document is not a lot of server space and support direct read access this URL may not visit, it is best to pre-generate your URL specification about, a lot of people are directly Chinese tag, that tag is not necessary to generate static files.

WordPress get current method user login information

1) get_currentuserinfo ();

This function will be assigned to the user currently logged on the global variable $ current_user well as some of the individual user information global variables such as $ display_name, $ user_email like. Code is as follows:

 1 <?php global $current_user, $display_name , $user_email;
 2 get_currentuserinfo();
 3 // Global variable $ current_user
 4 echo 'Username: ' . $current_user->user_login . "\n";
 5 echo 'User email: ' . $current_user->user_email . "\n";
 6 echo 'User first name: ' . $current_user->user_firstname . "\n";
 7 echo 'User last name: ' . $current_user->user_lastname . "\n";
 8 echo 'User display name: ' . $current_user->display_name . "\n";
 9 echo 'User ID: ' . $current_user->ID . "\n";
10 // Global variables alone
11 echo $display_name . "'s email address is: " . $user_email;
12 ?>

2). wp_get_current_user()
此函数必须将返回值赋给一个数组变量,代码如下:

1 <?php
2 $current_user = wp_get_current_user();
3 if ( 0 == $current_user->ID ) {
4 // Not logged in.
5 } else {
6 // Logged in.
7 }
8 ?>

WordPress Plugin: Synchronize Articles to Baidu Space Plugin for WordPress

WordPress Sync article to Baidu space plugin

Synchronous publishing WordPress blog log to Baidu space, the initial installation must be set to use.

If your server does not support ICONV, select version 1.0.1.

If your server supports ICONV, select version 1.0.0

Version 1.0 support
  1. Support to select the article published to Baidu comment permissions.
  2. Support to select the articles published to Baidu space access.
  3. Support to select the articles published to Baidu space reprint permission.
  4. Support for WordPress article links published to Baidu space, and select the original link shows the location.
Version 1.0 does not support features
  1. Does not support the WordPress in private (private) article published to Baidu space.
  2. Does not support automatic access to Baidu space category.

Optimize your WordPress database on a regular basis to speed up your blog

Today to see their own phpMyAdmin database and found that even 3.5MB database size, it is surprised to see carefully, found wp_comments accounted for 2.2MB. But open the table view, which will be dozens of comments Yeah, think of the latest light spam There are almost more than 10,000 articles, fragments should also be left in the database. It seems that the database must be optimized regularly.

Here are two ways to optimize:

First, open the WordPress phpMyAdmin where the database, the size of the back of the show on the extra data, click on the table below selected items – optimization table, you can clean up the excess data clean.

Second, it is also a fool than the above approach is to use Optimize Database plug-in.

  1. The official download Optimize Database.
  2. Uploaded to / wp-content / plugins /, the return to the console activated.
  3. The console tool options, will add a Optimize Database option, open, you can clearly see how much their own database needs to clean up the data, a key can clean up.
  4. We can usually do not have time to close the plug-in, when used again, so you can avoid too many plug-ins resulting in slow WordPress speed.

WordPress Anti – Spam Plugin: Akismet API Key Registration

Akismet (Automattic Kismet) is a widely used spam filtering system, its author is the famous founder of WordPress Matt Mullenweg, Akismet is also the WordPress default installation plug-in, its use is very broad, the design goal is to help blog site to filter spam . With akismet, basically do not have to worry about spam messages of trouble. The vast majority of wordpress bloggers are using the Akismet plugin.

It can also be used for a variety of blog platforms, not just WordPress, but also including such as MovableType, PixelPost, etc. can be used. Its working mechanism is very simple, when we enable Akismet, when the blog and then received a message, pingback or trackback, it will automatically be submitted to Akismet and Akismet blacklist on the match, if the blacklist , Then the message or trackback will not be released, of course, in order to avoid misjudgment, this information will not be immediately deleted, but the temporary down to the blog manager to further manual judgments, the general period of 15 days , That is, 15 days, blog managers can be restored, once the deadline will be deleted. As for Akismet is not recognized by the slip through the net when the blog manager to mark it as Spam, Akismet server-side will be updated accordingly, the corresponding content will be added to Akismet’s blacklist, that is, the black The list is maintained by the majority of blogs.

Oh, now you have a preliminary understanding of the plug-in the bar, and now we have to look at the use of this plug-in tutorial!

1, first of all, enable this plug-in, when he will give us such a prompt, “Akismet is ready, you have to enter a WordPress.com API key to make it work.”

This is very tangled, it does not matter we can register a.

055355Q0z wordpress反垃圾评论插件:Akismet API Key注册图文教程

2, as shown above, we click on “enter a … …”, he will prompt

Akismet API Key Registration Picture

Let you enter an Akismet API Key, generally we are not, then there is no relationship, register one.

3, we click on the figure in the “register a”, and then enter the next step.

4, as shown, this screen will appear,

Anti – spam plugin Akismet tutorial + Akismet API Key registration picture

Click the get an akismet key button, then go to the next step.

5, as shown, we entered the next step,

WordPress Anti – Spam Plugin Akismet Tutorial + Akismet API Key Registration

There are three options, the first is a commercial type, the second is temporary, and the third is a personal type, we choose a third individual, into the next step.

There will be you really register the box, the first is your name, the second is your last name, the third is the mailbox, the fourth is to confirm the mailbox, the four fill in the future, there is a most important The problem.

Anti – spam plugin Akismet tutorial

See me on the right with two red circle selected part of the Mody, prompting us to pay $ 36 a year, I faint, the poor who have money to buy a plug-in ah! Do not worry, that button can slide to the left, we slide the button, slide it to the left, it becomes 0, see below:

WordPress Anti – Spam Plugin Akismet Tutorial + Akismet API Key Registration

Haha, here we certainly understand it, we can use this plug-in free of charge, this time click on continue, is equal to the successful registration it!

6. Where I love WP to remind you that it is recommended to use Yahoo or Google gmail mailbox registration, the other can, after all, foreign things or use a good point of foreign mail. This time, in your mailbox which received an e-mail, which will have a combination of alphanumeric characters, the pair of letters is your key ha ha. To step 2, enter the key there, you can use this plug-in.

7. The key can be used in a number of sites at the same time, I love WP registered a key, there are four sites at the same time using the key, not tested up to how many can use, we can test Oh! But even if there are a number of restrictions, then we apply for more than a few mailboxes, more than a few registered on the list do not ha ha!

WordPress Theme: Texture Design M143 Theme

The WordPress theme of the biggest bright spot is his design and texture, very perfect a gray main theme. Because the subject structure is simple, the column is simple and practical, there is no fancy useless columns, code specifications, can be developed twice, is very suitable for SEO optimization, suitable for personal stations, small information sites.

 

123735ZWU wordpress主题:质感设计m143主题