Wordpress Chinese title setting fixed link % postname %

Source: Internet
Author: User
Tags curl

Next we will introduce an alias translation plug-in WP Slug Translate that supports batch translation of fixed links. This plug-in uses the Microsoft Bing translation API. After installing this plug-in, when we finish writing an article and click "Publish", we can automatically translate the article alias. For how to batch translate old articles, see the following:

1. WP Slug Translate plug-in download address: (note that the author for the "boliquan" that supports batch translation) http://wordpress.org/extend/plugins/wp-slug-translate/

2. Batch translation of fixed Chinese links: after logging on to the wordpress background, click "article" and you will see the article list, if you select "title", all articles on the current list page are selected. In "batch edit", select "edit" from the drop-down menu, click "application", and click "update" on the right ", wait for a while until the fixed Chinese link of all the articles on the current page is translated into English, and the same method is used for batch translation on the next page until all the translations are completed. Note that batch translation can easily Time Out. You can select fewer articles each time.

III. For details about how to use the WP Slug Translate plug-in, see the following:

= WP Slug Translate plug-in introduction =

WP Slug Translate | Download & raquo; | is an automatic translation plug-in that uses the Microsoft Bing translation API to Translate the title alias. It supports batch translation of the title alias. First of all, let's talk about why I want to write this plug-in. I have used wp-slug and cos_slug_translator plug-ins. The former is not stable because Google hits the wall from time to time, the author of the latter changed to Youdao API (because the original Google API charges fees), and Youdao translation is too bad. So I can only meet my own needs. Recently I learned the Bing translation API, and the translation effect is very good. So I made the automatic translation plug-in for the title alias of this article, you can translate an alias from 38 languages to English. If you manually specify an alias, the document ID is used as the alias if the translation fails due to network or other reasons. It is easy to use. It can be used directly after installation. There is a setting option named "WP Slug Translate". For a Chinese blog, the default setting is enough. Take care of yourself.

= WP Slug Translate plug-in installation and use =

(1) decompress the downloaded package to obtain the wp-slug-translate folder, upload it to the/wp-content/plugins/directory, and enable the package in the background. (2) perform simple configuration: "set" & rarr; "WP Slug Translate" to enter the settings page. (3) "Windows Azure Application": you can use the default one. You 'd better apply for one as prompted. Two steps are indispensable. Each account has a limit of 2 million characters per month. Therefore, we recommend that you apply for your account based on the tutorial. (4) "Source Language": indicates the Language you use to write a blog. Select the Language from the drop-down menu. (5) "Second Mode": runs in the Second working Mode. It is compatible with plug-ins such as synchronous Weibo (for example, multi-statement) and can translate the title alias in real time. (6) "Delete Options": if this option is selected, the setting Options in the database can be automatically deleted when the plug-in is disabled.

= FAQ FAQs =

① What is the title alias of an article (slug )? What is the fixed link format I personally recommend? A: The alias slug is the second half of the fixed link after the fixed link is set, also known as "scaling name". For example, the fixed link in this article is.

② How can I see the alias slug when I write an article? A: Click "show options" & rarr in the upper-right corner. Select "alias" to display the slug module. You can drag it to your favorite position. We recommend that you place it in the upper-right corner.

③ Can I manually specify slug? A: If slug is manually specified, the manually specified English version prevails. If the input is still a non-standard Chinese character or a pure number, the title is still translated.

④ In a previous article, slug was in Chinese. How can I change it to English? If there are many articles, how can we translate them in batches? A: "edit" this article & rarr; click "update". If there are many articles, click "article" in the background and you will see the article list, if you select "title", all articles on the current list page are selected. In "batch edit", select "edit" from the drop-down menu, click "application", and click "update" on the right ", wait for a while until the fixed Chinese link of all the articles on the current page is translated into English, and the same method is used for batch translation on the next page until all the translations are completed. Note that batch translation can easily Time Out. You can select fewer articles each time.

⑤ In a previous article, the slug is ID. How can I change it to English? A: First, make sure that your fixed link format has been set to the Post alias/% postname %/or/your postname#.html, edit the article, and click "update ", you can automatically translate the title.

⑥ The title alias of an article is already in English. Will the url change after the article is edited? A: No. The alias is automatically translated only when it is a non-standard Chinese character or a pure number. If it is already in English, you can edit it as needed and the url will not change.

7. Why didn't I see the fixed link automatically translated after I wrote the article? A: Since you have not clicked "publish", WP Slug Translate is executed when publishing an article.

What should I do if translation fails due to poor network connectivity? A: If translation fails due to network problems, the article ID is automatically used as slug. Of course, you can still manually specify slug. You can also click "update" to execute the translation again.

What is "Windows Azure Application? A: This is Microsoft's application center. By default, it is the one I applied for. Because each account has a limit of 2 million characters per month, it is best to apply for your own account, subscribe to "Microsoft Translator" before registering. Two steps are indispensable. If you find that your application is unavailable, click "reset" to restore the default settings.

What does "second working mode" mean? A: This is a new working mode to be compatible with plug-ins such as synchronous Weibo (for example, more). It can solve the problem of "cannot open the address after synchronizing to Weibo, when you can translate the title alias in real time, note that many features are different from those described above when working in this mode.

For some people, "Fatal error: Call to undefined function curl_init ()". Why? A: If you are testing in the local XAMPP environment, it is because the CURL function is not enabled, or the CURL function is disabled by default in other local environments. Please refer to this article: the CURL method for enabling local XAMPP. If this happens on the host you are using, you can basically consider changing the host, and the most basic CURL function is not enabled, basically, no API plug-ins can be used ~


Key parameters of fixed link structure labels

The WordPress fixed link structure is mainly composed of structure tags. Once you understand these tags, you can set your permanent link at will.

 

The main parameters are as follows:

% Year, four digits, for example: 2009
% Monthnum % month, for example: 01
% Day %, for example, 10
% Hour %, more accurate time, such as: 16
% Minute % points, for example: 50
% Second, for example: 30
% Post_id % unique identifier of the article, for example, 110
% Category
% Author name
% Postname % article name

"% Postname % article name" is a commonly used structure tag for WordPress fixed links. For example, the title of an article is "Hello World ",

"Hello-World" is displayed when the fixed link of the structure label is used ". The Chinese version of WordPress displays the "log alias" of the article ",

Note that you should set the "log alias" to English or pinyin; otherwise, it is not conducive to searching.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.