WordPress Page Static Plugin

Article we introduce and install WordPress on historical document archive plugins(Clean Archives Reloaded plugin), cos-HTML-cache is first installed after installed WordPress plugin. COS-HTML-cache is the role of static pages. COS-HTML-cache can produce articles and Home HTML cache file, when there are comments, modify, add and delete articles updated Home and cache for the current page. In the latest version of http://WordPress.org/extend/plugins/COS-HTML-cache/ that can be downloaded to COS-HTML-cache, of course, the plugin author‘s website, or you can find theplug-in installation and usage. Currently the latest version of this plugin 2.7.3


Last year, I already know and start using COS-HTML-cache, this plugin would be more difficult than the Clean Archives Reloaded installation and configuration, the big question is: and all the operations described in the document according to the plugin author, every step was right, but not the correct results, was unable to build static pages. In that case, I am afraid only for the other similar plugins. I used to have a Blog after variety testing, and COS-HTML-cache cannot be used, but can only be replaced by another similar function plug-in: WP-Super-Cache.


Abroad a number of virtual hosts, PHP functions in the value is $_SERVER, mysterious, and in that case, cos-HTML-cachegenerated static pages are not saved in the directory you specified, may be saved in the space under the root directory. Plugin authors in this case gives a solution. Modify the COS-HTML-cache.php file $path = $_SERVER[‘DOCUMENT_ROOT’]. /; Replaced by $ path = ABSPATH; If the directory is still confusion, continued to modify the $ path = ABSPATH. /Youblogdir until normal. My friends and I have come across this problem, changes to resolved.


After the page is static, it will reduce the pressure on the server and database. Relative to read from the database and displays it, viewers will feel a shorter time to fully load the page, while the possibility of excessive server resources will be reduced. Very grateful to the author can write such excellent WordPress plugin.

Chinese Automatic Translation into English slug plugin

Have always wanted to write this plugin and, more recently, friends to write pinyin slug plugin is triggered my motivation to want to write the English slug, but Google has not launched its translation interface, don’t wait, just a trick to solve this problem.


This plugin is used to slug Chinese automatic translation into English of the title, so that advantages of SEO, if you enabled this plugin does not need to be translated again manually for each title, and Google‘s translation is more and more perfect andaccurate, not against.


Installation: as with other plugins, upload the plugin directory, and can be activatedin the background. plug-in activation after that as new articles, the slug will be automatically obtained from the title translation.

Download: cos_slug_translator.zip
WordPress2.3 support, as well as other version 2.x
Fixed as the Snoopy class conflict error, please download the new files, friends, delete the original content that is already installed, it can be overwritten with the new files.
  1. Get rid of custom Snoopy, following WP Snoopy, solves the conflict of WP background call logs;
  2. Get smarter, if English slug is manually specified, the priority manually, modify the article no longer modifies slug, more conducive to SEO;
  3. File weight, the entire plugin does not exceed 3 k
  4. Corrected the plugin failed translation issue

10 Things You Need To Do After Installing WordPress

This is an introduction to install WordPress need to do, this is a series of tutorials, I love WordPress through this tutorial so that rookie can learn something, you see the course of the tutorial have any questions, please leave a message.

First, The Prevention of Spam

Do not know when to start, the blog has become a great place to do advertising, spam messages rolling in, and WordPress is notoriously search engine friendly program, plus a lot of friends do not know nofollow, so, Everyone began to fight spam messages.

The default anti-spam program Akismet requires an API KEY to share an anti-spam database, but the KEY needs to be registered with WordPress.com. However, the site can not be opened at some point, but the plugin does require a KEY Useful, so we installed WordPress, you need to register this, access to an API KEY, in fact, the KEY can be shared, so to find a familiar friend to share a OK.
At present, I have seen the most spam blocking blog is a million, a blog, there are so many spam messages, is not easy!

Second, Change the Form of Permanent Blog Links

WordPress installation is successful, the default form of a permanent link: http://xxx.com/?p=xx, this form of permanent links to the search engine is not friendly. Do a good job in the form of links many people think is a custom pseudo-static link, and now the vast majority of blogs are in the use of this form of permanent links, so it is recommended to you, there is a pseudo-static link in the form of a detailed description ,Click to view.

It should be noted here, please make sure that the use of space is to support pseudo-static, (mod_rewriter.)

(Since it comes to a pseudo-static, here to say a few words, I hope we can have a little help. When the pseudo-static links are rarely used by everyone, this link is really popular form of search engine favor, but when all the Are pseudo-static, when the search engines do not like, and here, the other of us to think about it.)

Third, Improve the WordPress Cache

With the continuous updating of WP, do not remember from which version began, or from WordPress has been used since we began, say WordPress implementation efficiency is low, so improve the efficiency of execution is a big big thing, so there The cache plug-in, do not specifically introduce the cache plug-in, but it can be clear that the cache plug-in really useful.

Fourth, Create a Blog Map

To facilitate the search engine crawl, this is necessary, usually, we all use this plug-in: Google XML Sitemap.

Fifth, To the Blog Burner Feed

Modify the default blog feed address, try to host to a third party. The current comparison noted Feedburner, Friendfeed, domestic Feedsky.

Sixth, Increase the Statistical Code

There are a lot of domestic statistics, the general blog with cnzz and 51 friends ok, there Quantum Road, of course, is the Daisen: Google statistics, as to why the statistical code, I believe you are clear.

Seventh, Submit a Blog to the Relevant Site

In addition to the above hard training, “internal strength”, but also actively promote the blog out to the various search engines is very necessary to submit.

Eighth, Create robots.txt

In this regard, Wopus recommended the previous two articles: search engine unification: Robots file standard, WordPress SEO robots.txt optimization.

Ninth, To Find a Good Theme

Look at people, the first impression is too important, the blog is, so after installing the blog, as soon as possible to find a good WordPress theme, is also very critical, of course, a loving friend, you can design their own.

Tenth, Begin to write better content

No matter how good the settings, no matter how good the optimization, even the best theme, no matter how good the user experience, you need to have good content to support, so the content is king!
Of course, remember to take a good look at the page through a good introduction, the exchange and communication is also very necessary.

A WordPress do more than ten points, enough to do a good blog. Do not just look at, but also hands-on. In addition, you are welcome to share your experience.

How to Change WordPress Permalinks?

How to change WordPress permalinks?

Into the background – settings – fixed links-customize

I love WordPress Permalink settings as shown in Figure:

001 300x127 怎样修改WordPress固定链接?

Let us look at the WordPress official list section you can use the permalink of the basic parameters:

Based on release year, such as 2010;

Based on article is published monthly, for example, 01;

Based on article published the same day, for example, 20;

Based on the posted hours, say, 15;

Based on the published minutes, 43;

Based on articles published in seconds, such as 33;

Postname based on the article, the abbreviated name whose value is specified when you write, do not specify when slug is the title of the article;

Based on article post_id, 423;

Based on article categories, sub categories into “category/subcategory” this form;

Based on the authors name.

The above parameters are combined, you can get WordPress Permalink format. Several common online setting method:

  1. /%year%/%monthnum%/%day%/%postname%/
  2. /%year%/%monthnum%/%postname%/
  3. /%year%/%monthnum%/%day%/%postname%.html
  4. /%year%/%monthnum%/%postname%.html
  5. /%category%/%postname%.html
  6. /%post_id%.html

And so on, can be freely defined. Yesterday we also changed a few times, finally identified as:/%category%/%postname%.html this form. I actually want to use date-based, narrative behind, are some of the one-sided point of view, are for reference only.

  1. And consider to himself blog is single maintenance, content impossible many, so directory structure should not be had deep, actually according to online of claims, three layer within are is completely didn’t problem of, but once layer number more has Hou, whole website on became compared loose has, online seems to put this called bonding, so I think above 1th, and 3 species can gave up, unless site content rich, also through tag like of for joint.
  2. I personally prefer to use date-based, such as the/%year%%monthnum%/%postname%.HTML is generated by 200705/XX.html, but when you use the directory visit WP 200705 200705 automatically redirected to 2007/05, I just don’t like it, is not willing to change 2007/05/XX.html this form, only to continue to find the solution.
  3. Before finally determining classification is used to generate links, is the 5th, which is also good, many of my friends are using this, I like simple thumbnail settings simply in its own directory, link looks OK.
  4. I’m not using now are more likely to be included instead of using HTML/structure extension form, my idea is that one cannot always have a directory structure of the site has no HTML files, total station is the directory structure, it doesn’t look good, so it is good according to the traditional style.

Five Minutes to Quickly Install WordPress

WordPress is very easy to install, just six steps, what are you waiting, follow me:

Download and extract the WordPress package.

Create a database for WordPress on your host, as well as a MySQL user with permission to access and modify. Rename the WP-config-sample.php to WP-config.php.

Open wp-config.php with your favorite text editor and fill in your database information

define(‘DB_NAME’, ‘putyourdbnamehere’); The database name
define(‘DB_USER’, ‘usernamehere’); Database user name
define(‘DB_PASSWORD’, ‘yourpasswordhere’); Database password
define(‘DB_HOST’, ‘localhost’); Database addresses

Upload the WordPress files to the appropriate place on your Web server:

Upload all the contents of the unpacked WordPress directory (not

including the outermost WordPress folder) to your space directory.

Visit WP-admin/install.php in your browser to run WordPress scripts.

If you installed WordPress in the top-level directory, you need to visit http://example.com/WP-admin/install.php

If you installed WordPress in a subdirectory, such as blog, you should visit http://example.com/blog/wp-admin/install.php

All right! WordPress should already be installed.

10 WordPress Must Have Plugin

Although WordPress plugin Wopus has always held that install is as little as possible, but because WordPress itself features shows and blogs need to communicate, some WordPress plugin is still very necessary, Wopus summarizes 10 WordPress features add or promote the exchange of useful plugins, welcome to express their views.
Section 1: WP-DBmanage

Data for a blog‘s importance, methods to ensure data security is often backed up, and a fully functional, easy to use the WordPress database backup plugin is necessary.

WP-DBmanage full Raiders:  http://www.52wordpress.NET/archives/125.html

Section 2: WP Super Cache

Without introduction, WordPress official had still not improving the efficiency of theimplementation situation, WordPress releases a new version, and WP Super Cache value will reflect incisively. This plug-in has also been the any of the WordPress official.

WP Super Cache use the whole Raiders:  http://www.52wordpress.NET/archives/151.html

Section 3Akismet

Default integrated this plugin in WordPress setup, in this spam comments, and advertising messageridden era of Web 2.0, there is such a powerful anti-spam plugin is a very happy thing, in the WopusIDC user group, that 1000+ comment spam, say prayer.

WP plugin Akismet anti comment spam strategy: http://plugins.wopus.org/content/antispam/266.html

Section 4: CommentLuv

Maybe a lot of my friends were the first to see this plugin, this plugin is very valuable. In short, this plugin can display your blog for the latest in the message log. A blog to get good traffic to go visit other people‘s blogs and message interaction is necessary, of course, your blog address must be filled in correctly, perhaps only by mailand avatar is not enough to attract others to click on, but when someone blogs displayed directly on your blog for the latest logs, it would greatly increase the numberof blog is accessed.

CommentLuv for more information: http://plugins.wopus.org/content/comment/70.html

Section 5: AntiVirus

Update of WordPress itself, it means this is a more dangerous procedures, of course, maybe a theme or in a plugin, also hides some junk code or even the virus code, this time, we need a strong third party testing tools, WordPress enthusiasts have done such a thing, developing a powerful plug-in.

WordPress antivirus plugin: AntiVirus:http://plugins.wopus.org/best-plugin/190.html

Section 6: Google Sitemaps Generator

You can automatically generate a sitemap.XML file so that all of the pages in the search engines to find websites faster, so as to make the search engine more quickly your site‘s pages. This plugin is definitely WordPress.

Google Sitemaps Generator: http://plugins.wopus.org/best-plugin/4.html

Section 7: Featured Content Gallery

Don’t know the plug-in name does not matter, see WordPress CMS theme of friends, all know WordPress CMS theme has a slide, this plugin can easily realize the slideshow feature of WordPress CMS theme.

Slideshow plugin Featured Content Gallery (FCG) Chinese version: http://plugins.wopus.org/content/slide/284.html

Section 8:  Add Post URL
The Chinese translation of this plugin are: Add link and copyright notice plugin. LikeWopus said before: how to protect your original article not reprint, copy and copyit? Though not much now, but we can at least add a copyright notice that our attitude.


Add a link and copyright notice plugin: Add Post URL:http://plugins.wopus.org/content/editpost/112.html


Section 9:  Yet Another Related Posts Plugin

WordPress related posts plugin has a lot and recommend it, and the reason is very simple, this plug-in of the highest precision. Title, content, tags, categories, and are the data source for this plugin. Powerful.

Yet Another Related Posts Plugin: http://mitcho.com/code/yarpp/

Section 10: Global Translator

WordPress multi-language plug-in, you can easily translate your blog into multiple languages, the plug-in is using Google‘s translation, Google recently Google translate to do enhanced plug-in worth more. Internationalization of the blog a must have plug-in.

Make your site multilingual: Global Translator Plugin: http://plugins.wopus.org/best-plugin/71.html

Above is Wopus recently recommended 10 WordPress must have plug-in. No change to the above plug-in is not a dust, so Wopus recently, WordPress updates, plug-ins are also published, everything changes, hope Wopus summary 10 plug-ins can help you WordPress lovers.

WordPress Theme Design Commonly Used Code

Hope this is helpful to those learning WordPress theme friends.

Shows the most recent articles:
  1. < ?php wp_get_archives(‘type=postbypost&limit=5’); ?>
  1. < ?php $recentposts = get_posts(‘numberposts=12&category=4’);<BR>foreach ($recentposts as $post) : setup_postdata($post); ?> </P>
  2. <LI><A href=”<?php the_permalink() ?>”>< ?php the_title(); ?></A></LI>
  3. <P>< ?php endforeach; ?>
Show category:
  1. <BR>
  2. <H2>Categories</H2>
  3. <UL>< ?php wp_list_cats(‘sort_column=name’); ?> </UL>
  4. <P>
Show Archive:
  1. <H2>Archives</H2>
  2. <UL>< ?php wp_get_archives(‘type=monthly’); ?> </UL>
  3. <P>
Show tag cloud:
  1. < ?php wp_tag_cloud(‘smallest=8&largest=36&’); ?>
Show links:
  1. <UL>< ?php wp_list_bookmarks(‘title_li=&categorize=0’); ?> </UL>
  2. <P>
Show Tags:
  1. < ?php the_tags(); ?>
Show Page Navigation Menu:
  1. <BR>
  2. <H2>Pages</H2>
  3. <UL>< ?php wp_list_pages(‘title_li=’); ?> </UL>
  4. <P>
Show last comment:
  1. < ?php<BR>global $wpdb;<BR>$sql = “SELECT DISTINCT ID, post_title, post_password, comment_ID,<BR>comment_post_ID, comment_author, comment_date_gmt, comment_approved,<BR>comment_type,comment_author_url,<BR>SUBSTRING(comment_content,1,30) AS com_excerpt<BR>FROM $wpdb->comments<BR>LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =<BR>$wpdb->posts.ID)<BR>WHERE comment_approved = ‘1’ AND comment_type = ” AND<BR>post_password = ”<BR>ORDER BY comment_date_gmt DESC<BR>LIMIT 10″;<BR>$comments = $wpdb->get_results($sql);<BR>$output = $pre_HTML;<BR>$output .= “\n
  2. <UL>”;<BR>foreach ($comments as $comment) {<BR>$output .= “\n
  3. <LI>”.strip_tags($comment->comment_author)<BR>.”:” . “<A href=’\””‘ get_permalink($comment- .>ID) .<BR>”#comment-” . $comment->comment_ID . “\” title=\”on ” .<BR>$comment->post_title . “\”>” . strip_tags($comment->com_excerpt)<BR>.”</A></LI>
  4. <P>”;<BR>}<BR>$output .= “\n</P></UL>
  5. <P>”;<BR>$output .= $post_HTML;<BR>echo $output;?>
Display Management Panel:
  1. <UL>< ?php wp_register(); ?>
  2. <P></P>
  3. <LI>< ?php wp_loginout(); ?></LI>
  4. <LI><A href=”http://www.wordpress.org/”>WordPress</A></LI>
  5. <P>< ?php wp_meta(); ?> </P>
  6. <LI><A href=”http://validator.w3.org/check?uri=referer”>XHTML</A></LI></UL>
  7. <P>
Show Hot Comments:
  1. < ?php $result = $wpdb->get_results(“SELECT<BR>comment_count,ID,post_title FROM $wpdb->posts ORDER BY comment_count<BR>DESC LIMIT 0 , 10”);<BR>foreach ($result as $topten) {<BR>$postid = $topten->ID;<BR>$title = $topten->post_title;<BR>$commentcount = $topten->comment_count;<BR>if ($commentcount != 0) { ?> </P>
  2. <LI><A href=”<?php echo get_permalink($postid); ?>” title=”< ?php echo $title ?>”>< ?php echo $title<BR>?></A></LI>
  3. <P>< ?php } } ?>

WordPress Theme Design Commonly Used Code



1.< ?php wp_get_archives(‘type=postbypost&limit=5’); ?>


1.< ?php $recentposts = get_posts(‘numberposts=12&category=4’);<BR>foreach ($recentposts as $post) : setup_postdata($post); ?> </P>
2.<LI><A href=”<?php the_permalink() ?>”>< ?php the_title(); ?></A></LI>
3.<P>< ?php endforeach; ?>


3.<UL>< ?php wp_list_cats(‘sort_column=name’); ?> </UL>


3.<UL>< ?php wp_get_archives(‘type=monthly’); ?> </UL>


1.< ?php wp_tag_cloud(‘smallest=8&largest=36&’); ?>


1.<UL>< ?php wp_list_bookmarks(‘title_li=&categorize=0’); ?> </UL>


1.< ?php the_tags(); ?>


3.<UL>< ?php wp_list_pages(‘title_li=’); ?> </UL>


1.< ?php<BR>global $wpdb;<BR>$sql = “SELECT DISTINCT ID, post_title, post_password, comment_ID,<BR>comment_post_ID, comment_author, comment_date_gmt, comment_approved,<BR>comment_type,comment_author_url,<BR>SUBSTRING(comment_content,1,30) AS com_excerpt<BR>FROM $wpdb->comments<BR>LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =<BR>$wpdb->posts.ID)<BR>WHERE comment_approved = ‘1’ AND comment_type = ” AND<BR>post_password = ”<BR>ORDER BY comment_date_gmt DESC<BR>LIMIT 10″;<BR>$comments = $wpdb->get_results($sql);<BR>$output = $pre_HTML;<BR>$output .= “\n
2.<UL>”;<BR>foreach ($comments as $comment) {<BR>$output .= “\n
3.<LI>”.strip_tags($comment->comment_author)<BR>.”:” . “<A href=’\””‘ get_permalink($comment- .>ID) .<BR>”#comment-” . $comment->comment_ID . “\” title=\”on ” .<BR>$comment->post_title . “\”>” . strip_tags($comment->com_excerpt)<BR>.”</A></LI>
4.<P>”;<BR>}<BR>$output .= “\n</P></UL>
5.<P>”;<BR>$output .= $post_HTML;<BR>echo $output;?>


1.<UL>< ?php wp_register(); ?>
3.<LI>< ?php wp_loginout(); ?></LI>
4.<LI><A href=”http://www.wordpress.org/”>WordPress</A></LI>
5.<P>< ?php wp_meta(); ?> </P>
6.<LI><A href=”http://validator.w3.org/check?uri=referer”>XHTML</A></LI></UL>


1.< ?php $result = $wpdb->get_results(“SELECT<BR>comment_count,ID,post_title FROM $wpdb->posts ORDER BY comment_count<BR>DESC LIMIT 0 , 10″);<BR>foreach ($result as $topten) {<BR>$postid = $topten->ID;<BR>$title = $topten->post_title;<BR>$commentcount = $topten->comment_count;<BR>if ($commentcount != 0) { ?> </P>
2.<LI><A href=”<?php echo get_permalink($postid); ?>” title=”< ?php echo $title ?>”>< ?php echo $title<BR>?></A></LI>
3.<P>< ?php } } ?>