WordPress Theme Produced Concise Tutorial Lecture 1 Brief Description

Many people start using WordPress because they see the beautiful WordPress theme. In order to make every WordPress fans can create personalized themes, we have carefully prepared, and finally launched the WordPress theme production tutorial.

This tutorial is mainly written by tomheng, the old Wu amendment, I hope you can from the theme of WordPress have a basic understanding of the production.

WordPress is a very good open source blog program, sought after by netizens around the world. It is not only a simple and easy to use blog application, but also a good tool for learning. Through the theme of the production you can learn web design knowledge, learning plug-in development can improve the ability of your php programming, if a more in-depth understanding of the WordPress framework structure, then your architecture design capability is also an improvement.

The introductory tutorial is designed to spread the basics of WordPress theme creation, and for the most basic introductory users, let us realize that making WordPress theme is simple and fun ).

To learn our tutorials requires that you first be a WordPress skilled user, if you are not yet familiar with how to use WordPress, please go to I Love WordPress to see the basics of using WordPress tutorials.

(1) All html tags must be closed
<Ul> </ ul>

(2) Html tags can not be cross-nested
<Div> <span> </ div> </ span> This is not allowed
<Div> <span> </ span> </ div> This is correct

(3) Where <? Php?> Or <? … …> Lane are the contents of the PHP code

(4) Php two comments method

A, / / single-line comments B, / ** / cross-line notes

That is, beginning with / * to * / the middle part of the termination of all comments code

5) css style file comment method only one / ** / cross-line comments
Recommend some tools and websites

  1. php do not know how to go. Php.net query
  2.  and css, html-related issues: w3school inquiries

The Second Theme of the Basic Flow of Production

It’s also simple and fun to create theme tutorials. On the subject of our WordPress tutorial for a brief description, let us first configure our development environment.

(1) in their own computer to install WordPress running environment

The installation process may encounter some problems, the general is the Thunder and other software occupies 80 ports. So the best before the installation to the Thunder off. In addition phpnow, appserve, nertrigo and so can complete xampp work.

(2) in the local server to install WordPress

This is relatively simple, if all goes well at this time Hou, in their own browser input http: // localhost can see their installed WordPress friends.

(3) Recommendation:

Prepare some software, dreamweaver, fireworks, preferably installed more than two browsers (including ie, firefox) Of course, these are not necessarily used, but recommended Continue reading “The Second Theme of the Basic Flow of Production”

Lecture 3: Creating a Blog Header

Through the last talk about the WordPress theme we know the two main documents are style.css and index.php, they are the most basic, but only they are obviously not perfect, although you can write all the features To index.php, but this does not meet the WordPress theme of the specification, this will learn how to follow the norms to create their own themes.

From the above icon we can see that a basic WordPress page is composed of four parts (header.php,
Index.php, footer.php, sidebar.php), they are responsible for different parts of the WordPress blog page. We will explain the following four courses in the production of these documents, today we have to look at how to make header.php file

(1) First, we write the index.php following a few simple functions, these functions do not explain the time, so when we talk about index.php file will be explained.

The code is as follows

<?php get_header()?>
<?php get_footer()?>

(2) and then in the wpc-tomheng directory to create a header.php file.

Write the following code:

<!DOCTYPE html PUBLIC ”-//W3C//DTD XHTML 1.0
Transitional//EN” ”http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title> <?php bloginfo(‘name’); ?></title>
<linkrel=”stylesheet” href=”<?php bloginfo(’stylesheet_url’); ?>” type=”text/css” media=”screen”
/>
</head>
<body>
<div >
<h1><a href=”<?php echo get_option(‘home’); ?>/”><?php bloginfo(‘name’); ?></a></h1>
<div class=”description”><?php bloginfo(‘description’); ?></div>
</div>
</body>

(3) open the browser to view the theme is not able to see the name of the blog shows there are descriptions. Well, this is the template function of the credit, and here we look at how this is achieved.

Description:
First, bloginfo () template function

Bloginfo () is a template function, through which we can call your blog-related information, we used header.php four times this function, remove the three main data: blog name bloginfo ( ‘name’), The style file bloginfo ( ‘stylesheet_url’), blog description bloginfo ( ‘description’).

There are two points to be noted:

1) Bloginfo () function with the output function, that he is not to return data, but directly to the data output to the browser.

2) Boginfo () output different data through the parameter configuration to achieve. Bloginfo () function of the common configuration parameters

Second, get_option () function

Here we use this function to get the address of the blog link, this function needs to pay attention to his return is a url address variable, so if you want to display on the page then need to add echo function in front of him. Of course, we should also add some styles, but this is beyond the scope of our tutorial, here I just explain to you how to use these template functions and theme production of basic methods, Knowledge, coupled with a wealth of creativity in order to achieve a beautiful theme, which depends on your CSS knowledge base and design capabilities and these are not included in the content of our tutorial (perhaps after wpc will provide the relevant tutorial, pay close attention)

(2) open the browser to view the theme is not able to see the blog shows the name of the description of it. Well, this is the template function of the credit, and here we look at how this is achieved.

 

 

WP Super Cache use the whole Raiders

WP Super Cache as a classic old and very easy to use effective plug-ins, WPer has always been almost one of the things that must be installed. But it seems a lot of people still on how to use it a bit confused … so, as far as detailed …

What is WP Super Cache?

WP Super Cache generates static html files from your dynamic WordPress Blog. When an html file is generated, your server will use this file to replace the need to handle relatively more workload and more WordPress PHP script action. The generated static html file will serve most of your users, except those that are displayed in the comment form after the comment has been posted. These requests are handled by PHP. Static files are displayed for the following users: Not logged in users. There is no comment on your blog users. Or users who do not have access to a password-protected article. 99% of visitors will be served by static html files. Users who do not see static files will also benefit because those who see will see the regular WP-Cache cache file, so your server will not be as busy as usual. This plug-in will help your server handle the tide of visitors when one of your pages appears on the Digg.com or other social home page. If for some reason “super cache” can not work in your server do not have to worry about. The cache will continue to execute, but each request will need to call the PHP engine. Under normal circumstances, this is pretty good. Your visitors will not notice any slowdowns or any differences in site opening, or find that your site is undergoing heavy traffic. The super-cache html file will display faster than the PHP-generated cache file, but the difference is not obvious in daily use.

How to install:

First, you should have installed Apache mod mime and mod rewrite module, and enable WordPress fancy permalinks. Disable PHP security mode. If any of the above conditions are missing or closed, you can still use the slow WP-Cache part of this plugin. If you already have the WP-Cache plug-in installed, disable it first.

Edit the wp-config.php file to confirm that the WP_CACHE definition has been removed and remove the wp-cache-config.php file and the advanced-cache.php file from the wp-content directory. The contents are re-generated after installing WP-Super-Cache.

Upload the WP-Super-Cache directory to your plug-in directory. It will create a “wp-content / plugins / wp-super-cache /” directory. If you are using the WordPress MU version, you will need to install the plugin to “wp-content / mu-plugins / wp-super-cache /” and copy the wp-cache.php file into the mu-plugins directory. Visit the Plug-ins page in your administration page to activate WP Super Cache. Once activated, go to Settings → WP Super Cache and enable caching. If you see an error message, or a blank page, you may need to fix it. See the Frequently Asked Questions section of this article for a solution.

The mod_rewrite rule is automatically inserted into your .htaccess file. This file is located in the root directory of your space.

This file should look similar to the following: ——. Htaccess ——

RewriteEngine OnRewriteBase / RewriteCond %{REQUEST_METHOD} !=POSTRewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$ RewriteCond %{HTTP:Accept-Encoding} gzip RewriteCond %{HTTP_user_agent} !^.*(2.0 MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger |DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone |iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo Wii|Nitro|Nokia|Opera Mini|Palm|Playstation Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows CE|WinWAP).* RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L] RewriteCond %{REQUEST_METHOD} !=POSTRewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{QUERY_STRING} !.*attachment_id=.* RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$ RewriteCond %{HTTP_user_agent} !^.*(2.0 MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo| Elaine/3.0|EudoraWeb |hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo Wii|Nitro|Nokia|Opera Mini|Palm|Playstation Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows CE|WinWAP).* RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L] RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

—————–.htaccess—————–

Apache must be set to allow the above modules to work. If “500 internal error” occurs when responding to an anonymous guest request, you need to adjust your Apache settings.

The following settings are valid on my virtual host:
 # BEGIN supercache&lt;IfModule mod_mime.c&gt;&nbsp; &lt;FilesMatch &quot;.html.gz$&quot;&gt; &nbsp;&nbsp;&nbsp; ForceType text/html&nbsp;&nbsp;&nbsp; FileETag None&nbsp; &lt;/FilesMatch&gt; &nbsp; AddEncoding gzip .gz&nbsp; AddType text/html .gz&lt;/IfModule&gt; &lt;IfModule mod_deflate.c&gt;&nbsp; SetEnvIfNoCase Request_URI .gz$ no-gzip &lt;/IfModule&gt;&lt;IfModule mod_headers.c&gt; &nbsp; Header set Cache-Control 'max-age=300, must-revalidate'&lt;/IfModule&gt; &lt;IfModule mod_expires.c&gt;&nbsp; ExpiresActive On&nbsp; ExpiresByType text/html A300 &lt;/IfModule&gt;# END supercache
The first is the state of the cache settings.

ON: Both WP Cache and Super Cache are enabled.

No special circumstances recommended to choose this.

HALF ON: half-open mode, disable Super Cache, only enable WP-Cache cache mechanism.

OFF: Disable WP Cache and Super Cache.

Proudly tell the world your server is not afraid of the Digg effect! Do not cache pages for the logged in users check is not logged in the user cache page. Proudly tell the world your server is not afraid of the Digg effect! (Place a message in your blog footer) Clear all cache files when a post or page is published. (This may significantly slow down saving of posts) Clear all cache files when new articles or pages are published (this may significantly reduce Cache rebuild. Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated. Recommended for very busy websites with lots of comments. Makes “directly cached pages” and “Lockdown mode” obsolete cache rebuild.

Displays a supercache file for anonymous visitors when a new file is being generated. This feature is recommended for very busy sites with a large number of comments. Enabling it will invalidate the “direct cached pages” page and the “lockdown mode lock mode”. Coarse file locking. You probably do not need this but it may help if your server is underpowered. Warning! May cause your server to lock up in very rare cases! This feature may not be required, but if your server performance is low, enabling it may be helpful. caveat! May be rare in the case of locking your server!

011 WP Super Cache使用全攻略

Mobile device support Mobile device support requires additional rules to be added to your .htaccess file, or you can set the plugin to half-open mode. Please follow the instructions on the page. Note: If you want to uninstall this plug-in, make sure the server wp-content directory is writable to automatically remove advanced-cache.php and cache-config.php. It ‘s a good idea to confirm that these files are also writable!

02 WP Super Cache使用全攻略

When uninstalling, use the uninstall script to remove the files and directories created by the plug-in. See Readme.txt for more information.

03 WP Super Cache使用全攻略

Cached content: Here statistics have been generated and has expired the number and size of the cache. Delete Expired Delete expired cache Delete Cache Delete all cache

04 WP Super Cache使用全攻略

Expiration Time and Garbage Collection Expiration Time:

3600 seconds Garbage collection If the expiration time is set to more than 1800 seconds (half an hour), the garbage collection action will be performed every 10 minutes, or 10 seconds after the preset expiration time. Examining and deleting outdated documents is costly, but it is not a good idea to leave these documents there. On very busy sites, you should set the expiration time to 300 seconds. Experiment with different values and visit this page to see how many expired files are generated at different times of the day, and try to keep the number of cached files to 500 if possible.

05 WP Super Cache使用全攻略Accepting Filenames and Denied URIs Do not cache the following page types. Click the link for a complete description of each type. The checked type will not be cached. The lower part of the box is a string of control whether the page to be cached. For example, if your link contains a year and you do not want to cache last year’s articles, then specify the year, “/ 2004 /”, WP Cache will search for this string is included in the URI, if it is not cache this page.

06 WP Super Cache使用全攻略This is the name of the file that can be cached, even if they match the set of denied cache substrings.

07 WP Super Cache使用全攻略Rejected User Agents A string in the HTTP User Agent header can help WP-Cache avoid requests for caching robots, spiders, and crawling robots. Note that Super cache files will still be sent to these types if they already exist.

081 WP Super Cache使用全攻略

Blocking: Disable / Enable You can enable this feature if you anticipate a traffic spike. When this feature is enabled, new comments published in the article will not refresh the cached static file.

09 WP Super Cache使用全攻略

Repair settings If you feel that the above settings have been you messed up, click Restore Default Configuration can be restored to its default state.

Common problem:

How do I know if my blog has been cached?

View the source code for any page of your site. When a page is created for the first time, you will see the text “Dynamic page generated in XXXX seconds.” And “Cached page generated by WP-Super-Cache on YYYY-MM-DD HH: MM: SS “. When refreshing, the cached page displays the same timestamp, so wait a few seconds while checking. If you enable compression, the text “Compression = gzip” will also be added. If compression is disabled, and the page is displayed in static html, the text “super cache” is added to it. Another way to check whether your cached pages are processed by PHP scripts or by static caching is to look at the HTTP header. WP-Cache (PHP) cache page will have such a header “WP-Super-Cache: WP-Cache”. You can use the FireFox extension called Live HTTP Headers to verify the header. At the same time, you should also look at the static cache file located in the wp-content / cache / supercache / hostname / directory.

Why is WP-Super-Cache better than WP-Cache?

This plugin is based on the great WP-Cache plug-in, so it has all the advantages of that plug-in. In addition, it creates a copy of every page in a single format for every visit to the blog, which allows the server to respond more quickly to requests. It’s almost as fast as saving a page in your browser and uploading it to replace your homepage.

Comments and other blogs on the dynamic part will be updated immediately?

Comments will appear as soon as they’re reviewed, depending on the blog owner’s review strategy. Dynamic elements on other pages may not be updated unless they are made up of Javascript, Flash, Java, or other client browser languages. The plug-in will actually create a static html page, and when these files are called, no PHP code is executed. “Popularity Contest” is a plug-in that will not work in a caching environment. Plug-ins that display different content for mobile device users may also not work properly.

Does Super Cache compression slow down my server?

No, on the contrary it will speed up your server speed. When a Super Cache file is compressed and stored, a heavy load compression occurs only once. These files are generally very small, sent to the visitor browser will be much faster than uncompressed. The result is that your server will spend less time on the transmission, so it will save CPU time and with blocks, and the next request to respond faster.

Why does WP UserOnline, Popularity Contest, WP Postratings, or a plug-in no longer work or update status on my blog?

The WP-Super-Cache plug-in caches the entire page, so some plug-ins that require PHP code for each page call will not work. To avoid this problem, this plugin must be updated using Javascript or AJAX. If the plug-in to display information on the page, then there must be a Javascript request. Why is this plugin not a default cache for search engine robots’ requests? These robots generally only visit each page once, if this page is not popular, there is no need to create a cache file and let it idle on your server.

Why not create a cache file for all the pages on my site?

As with the problem just now, there is no need to cache pages that nobody is accessing. A large number of cache files slow down the garbage collection system because it tries to check each file. At the same time it may also bring problems to the host. When your server encounters a disk error, it may take longer to check the file. Remember to use scandisk or fsck to check the time when the big drive? A category page replaced my home page … a small percentage of sites using the following settings will have such a problem: the use of static pages as a home page. Use /% category% /% postname% / Permanent link structure Sometimes a category page will be used as a site home page cache and replace the original static pages. The author can not reproduce the problem, but there is a simple way to solve the problem, that is, plug-ins set to half-open mode. For normal traffic, you will not find the speed of your site any different.

Problem handling:

If you install the plug-in and find out what is not normal, you can check from these aspects: the server can write wp-content directory?

Is there a wp-cache-config.php file in the wp-content directory?

If not, copy the wp-super-cache / wp-cache-config-sample.php file to wp-content / wp-cache-config.php and make sure WPCACHEHOME points to the correct location. Is there an advanced-cache.php file in the wp-content directory? If not, you need to copy wp-super-cache / advanced-cache.php to the wp-content / directory, edit the file, and change the path to point to the wp-super-cache folder. If the page is not cached, remove the wp-content / advanced-cache.php file and re-create it according to the above requirements. Confirm this line in the wp-config.php file before “require_once (ABSPATH.’wp-settings.php ‘);”: define (‘ WP_CACHE ‘, true);

1 Try opening the Settings -> WP Super Cache page again to enable
  caching.

Look at the wp-content / cache / supercache / directory. Is there a folder and a file inside? Do you have any information in the php error_log error log? If your browser has been asking you to save the file instead of displaying the page when the super cache is installed, you must disable Super Cache compression. Access the Settings -> WP Super Cache page to disable it. This plugin does not work well when PHP safe mode is enabled. This feature must be disabled by your server administrator. If the page can sometimes be super-cache and sometimes not, the reason may be your blog part of the visitors from the “www” prefix access and some are not. If you are using older versions of WordPress, you should choose to install the Enforce www preference plugin.

The latest version of WordPress can redirect them (you should always use the latest version of WordPress!). The personal server user on Dreamhost should edit the wp-content / wp-cache-config.php file and set the cache directory to the “/ tmp /” directory if it encounters an increase in CPU usage. A file locking error like “failed to acquire key 0x152b: Permission denied in …” or “Page not cached by WP Super Cache. Could not get mutex lock.” Indicates that you may have to use the file locking feature.

Edit wp-content / wp-cache-config.php and uncomment “$ useflock = ture” or set $ semid to a different value. You can also disable file locking from the admin page as a last resort. Verify that the server can write the cache / wpcachemutex.lock file The cache file can not be placed on an NFS or Samba or NAS share. You must place it on the server’s local disk. The File Lock and Delete Expired Files feature works only if the cache folder is on the local machine. If WordPress can not find the wp-cron.php file, the old cache file’s garbage collection feature will not work. If your host name is set to 127.0.0.1, it may prevent the garbage collection feature from functioning properly.

Check your access_log for entries on wp-cron.php. Do they return 404 (file not found) or 200 code? If you return to 404 or where you do not see the wp-cron.php file, WordPress may be looking for the script in the wrong place. You should contact your server administrator to fix the problem, or edit / etc / hosts on the Unix server and remove the following. Your host name must be set to a foreign IP address. See http://yoast.com/wp-cron-issues/ for more information.

1  127.0.0.1 myhostname.com
1  A line similar to "127.0.0.1 localhost localhost.localdomain" the
   content is possible

If the old page is displayed to your visitors through Supercache, you may be missing some Apache modules (if you are not using Apache, it might be something like functionality).

Three modules are required: modmime, modheaders and mod_expires. The latter two are important to ensure that the browser can call a new version of a page that already exists on your site. “WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content / advanced-cache.php must be fixed!” This error message appears at the end of each page, Open the wp-content / advanced-cache.php file to see if the path to wp-cache-phase1.php is correct? If not, the cache engine will not be called.

How do I uninstall WP Super Cache?

Edit the wp-super-cache / uninstall.php file in your plug-in directory and set UNINSTALL_WPSUPERCACHE to a non-null value.

1  define( 'UNINSTALL_WPSUPERCACHE', '1' );
Open your browser and call the wp-content / plugins / wp-super-cache / uninstall.php file directly.
You must log in and confirm this action. If you do not remove the plug-in immediately after this script is run, please comment out the above line
1  define()
Lest other people run it

How to manually uninstall: Remove the WP_CACHE definition from the wp-config.php file and the content should look like this: define ( ‘WP_CACHE’, true); Clean up the cache from the background page and disable the plug-in from the plug-in page Remove from your .htaccess file Super Cache mod_rewrite Removes wp-content / cache_php.php and wp-cache-config.php Remove wp-content-cache from your plug-in directory wp-super-cache

If all approaches fail and your site is no longer open

Remove the WP_CACHE definition from wp-config.php:

1  define( 'WP_CACHE', true );

Remove the plug-in from writing the rules in the .htaccess file (see above).

Remove the wp-super-cache directory from the plug-in folder

Alternatively, you can remove advanced-cache.php, wp-cache-config.php, and the cache folder in the wp-content / directory.

Customize the cache

Now can be achieved through the add_cacheaction () function hook into the cache process. Three hooks are available:

‘Wpcachegetcookiesvalues’ – Modify the keys used by the original WP Cache.

‘Add_cacheaction’ – Run in phase2. Allows a plugin to add WordPress hooks.

‘Cacheadminpage’ – runs on the admin page. Use it to modify the page, perhaps by adding new settings options to achieve.

There is also a common WordPress Filter. Use the “docreatesupercache” filter to customize the pre-cache check. The filter accepts a parameter. Output WP-Cache’s wpcachegetcookies_values () function.

WordPress Geek Topics: Geeky

jietu1 640x516 WordPress极客主题:Geeky

Author: old ghosts (I love WordPress is the theme)

 

Converting WordPress theme authors: Gao

 

Version: 0.2

 

Category: Geek blog, two template two columns

 

Topic description:

This is a very popular theme, it is estimated that read the Geeks friends want to get this theme, gao completed the conversion, is now a WordPrsss geek theme, compatible with the mainstream browser, the theme of the default support for Twitter , The detailed instructions can be used to see the theme of compressed package instructions.

 

Theme download: 52wordpress download

 

WP database plug-in WP-DBManager all Raiders

WordPress database management plugin.

WP-DBManager key features include:

Optimize WordPress database.
Fix the WordPress database.
Backup WordPress database.
Restore the WordPress database.
Databases can also be some actions, such as deleting data backup, delete unnecessary data table; the most important function is to support scheduled backups of the database, timing optimization.
Plugin author: Lester ‘GaMerZ’ Chan

Current WP-DBManager the latest version is 2.5, and support WordPress 2.8.5.

Plug-in Chinese language packs, Chinese language packs Download address: http://plugins.trac.wordpress.org/browser/wp-dbmanager/i18n/

WP-DBManager plugin to use:
Upload it to the plugins directory, activate the plug-in in the WordPress control panel.
Plugin is activated, a backup-DB directory will be generated in the WP-content directory, default permissions required for the directory is 777.
WP-content/plugins/WP-DBManager directory rename htaccess.txt to. htaccess. And the. htaccess file directory is changed to: WP-content/backup-DB
Last WP-Admin-> Database-> DB Options to identify some options for WP_DBManager.
More actions:
Plug-in Home, displays the current WordPress blog‘s database and table information.
WP-DBManage is the equivalent of a small database management tools:

 

08 WP数据库插件WP DBManager全攻略

 

Although there is only a plugin, like the introduction, main operations on a database, and as strong as phpMyAdmin.
One, Backup-DB: back up your data
Click on Backup-DB, the interface that appears on the right side there are two mainblocks, the first major show your WP-DBManage plugin is set correctly. If there is red appears, still have a problem then your plug-in settings, and follow the prompts to modify or complete the Setup, when Checking Backup Status (data backup status)is green, under font, then set exactly right.

 

Start backing up data before the backup, I love WordPress explains some options,(WP-DBManage plugin has Chinese language packs are translated.

DB WP数据库插件WP DBManager全攻略

Second, Manage Backup Database: manage data backup
Each time you back up data, backup before will not be overwritten, and here will bedisplayed in the manage backup in chronological data, you can choose to backup the data, and then sent to a designated mailbox, or you can download, recover, backup data is deleted.

00008 WP数据库插件WP DBManager全攻略

Third, Optimize Database: optimizing database

Database optimization principle: the Database should be optimize once every month. (should be optimized on a monthly basis)

67891 WP数据库插件WP DBManager全攻略

Optimization of data tables can be selected individually, powerful.

Four, Repair Database: database repair

And database optimization, data table can be repaired alone.

Five, Empty/Drop Tables: empty or delete data table

WordPress default of only 11 a data table, but some plug-in in enabled zhihou, will generated database table, if not need using plug-in has, can in here delete corresponds to of data table, members best in WordPress built good zhihou, put data table screenshots a Zhang, such yihou delete useless of data table of when can control about, prevent appeared errors by deleting, certainly, also is to first backup database.

Empty, or deleted data can only choose one.
Six, Run SQL Query: execute a database statement
Normally use less, need not be presented here. Of course the most important thingis normally do not find, but for beginners, use database statement is difficult, so usethe other method.
Seven, Database Options: database options
  1. Path: path, here is the database saved the absolute path on the server. General default.
  2. Maximum Backup Files: This means up to keep the database backup files, official default is 10, the excess is automatically deleted. In fact, I love WP believes that having two is OK.
  3.  C,Automatic Scheduling: set the database for automatic operation

 

121 WP数据库插件WP DBManager全攻略

  • Automatic database backups. You can set the backup time, once a week well.
  • Database optimization. Set how long database optimization, optimization once amonth OK.
Eight, uninstall WP-DBManage

Good plug-in not only detailed installation, tutorial and need to uninstall programs,this can be used to save a lot of trouble.

Uninstalling the plugin‘s page, there was a word: Deactivating WP-DBManager plugin does not remove any data that may have been created, such as the database options. To completely remove this plugin, you can uninstall it here.

Disabling the plugin does not remove any data generated, completely remove the plug-in, you can use the plugin uninstall functionality provided.

This plug-in on the presentation. Overall, this plugin is very powerful. In particular plug-in capability to automatically back up and sends it to the specified mailbox.
Plug-in currently supports many WordPress version 52wordpress only with the latest version, supports WordPress 2.8.5. Plugin homepage, articles can be in first place.

WordPress Best Flip Plugin

WordPress best described in the front page plugin I love WP plug-in already installed, respectively, is the historical document archive WordPress plugin, WordPress page COS-HTML-cache, Chinese automatic translation into English slug plugin and disable autosave, this time to say is the best page for WordPress plugin WP-PageNavi.WordPress comes with a very simple page turn, simple in the extreme, only the previous and next page, with the number of articles, such a simple page features clearly do not meet the needs of visitors, therefore, this plug-in comes into being.

WP-PageNavi displayed how many pages and visitors present at the first few pages and,of course, include the previous and next page, and starting from 1, you can customize the number of, and link to a certain page. These words referred to above, canbe set in the settings page of the plugin, you can customize the CSS. I love WP observation, quite a lot of WordPress sites using this plugin.

Wp-PageNavi the settings page, you can see the following variables:%CURRENT_PAGE%: the current page. If at Home, the number will be displayed as 1, if you back a page,this number becomes 2. %TOTAL_PAGES%: total number of pages. These variables can be set in the Text For Number Of Pages, if it is a Chinese blog and wrote his %CURRENT_PAGE% page%TOTAL_PAGES% page is a good choice. WP-PageNavi also has a lot of settings, use text instead of the picture, commonly known as, the photos don’t lie. Note page features two dotted up and down, a plug-in itself does notmatter, is the result of other CSS. (Point thumbnail to enlarge)

wp pagenavi 300x131 WordPress最佳翻页插件

After setting is complete enough, you also need to insert a piece of code to where you want the displayed page turn,

<?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?>
Specific action is to find the index.php file, I love WordPress settings screenshot is as follows:
01 WordPress最佳翻页插件
This is done. Take effect see, I love WordPress page under effects.
Thanks to the plugin author Lester ‘GaMerZ’ Chan such a good plugin for our use.
What‘s clear message to me.

 

 

Disable WordPress AutoSave Feature

Well, I have introduced programs installed on this blog three plug-in, respectively, is the historical document archive WordPress plugin, WordPress COSHTML-cache the page slug plugin automatically translated into English and Chinese, said today that the plug-ins are Disable AutoSave. The function of this plugin is WordPress autosave feature is disabled. WordPress 2.6, adds autosave features, that is, when adding anew article, the program every time, automatically save the contents of the text editing window to the database. This capability is somewhat controversial, supporters argued that this can effectively reduce the fault caused the window to close the browser without risk brought about by this time to save the article, while opponents argue that this feature saves a lot of useless data in the database can cause database redundancy, slow queries.

Opponents have figured out some way to try to block the automatic save feature, for example, to directly modify the source code, commented out contains the AutoSave lines, do have a few bad points, is that if WordPress upgrades, this effect disappeared, and second, when editing an article, the browser will offer us a JavaScripts error on the lower left. So I don’t have to use this method, instead of using a plug-in, Disable AutoSave. After the plugin is installed and enabled, the plugin you can disable WordPress AutoSave feature.
If you are like me don’t like WordPress AutoSave feature, use Disable AutoSave it quickly!

There are other methods, video tutorial: Disable AutoArchive multiple revisions of the article features everyone can refer to:

Multiple revisions automatically archived articles, or revision, WordPress version 2.6 is adding features. Every time you modify a log, it will add a revision, if you modified several times after a few posts, this will be a very scary number. If you have wrote on the log, your redundant revision could have qianpian many.
Revision Manager for this purpose, remove redundant revision to improve the SQL statement execution speed, upgrading WordPress speed has a lot of benefits.
Delete revision plugin
Delete redundant multiple story versions
Revision control plugin
Disable multiple revisions or control automatically archived articles
This part is very simple, but very useful.

Google Sitemap Generator Plugin

Google Sitemap Generator plugin 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.
If the root directory is writable, sitemap.XML file is generated in the Blog‘s root directory, if not writable, you will need to manually upload a sitemap.XML file, an empty can and set writable permission.
After setting, and enter the settings page in the background, create a sitemap.XML plugin will prompt for the first time.

General settings:

Sitemap file: you can choose whether to write to the sitemap.XML and sitemap.Xml.gz files. If your page a lot, you can select a gzip compressed file, so you can save a little bandwidth.

Method: the first should be elected, publish or modify articles automatically rebuildthe sitemap.XML file, so that the plug-in will ensure timely update the sitemap.XML file,without us manually reconstructed. Second is used when you use a thirdparty tool to modify the WordPress database that allows thirdparty tool to modify the database to access the plug-in directly to the address, the plug-in will begin when the address is update the sitemap.XML file.
Update notification: notify Google and Yahoo when reconstruction, this function can be reconstructed in sitemap.XML file to Google or Yahoo to send a notification, they will immediately after receipt of the notification to read the new sitemap.XML file.
Advanced options: you can set the plugin tries to rebuild the sitemap.XML file temporarily improve memory limit and running time limits. If no error established sitemap.XML, then you do not need to use this one. XSLT styles, the XSLT style sheet is used to modify the XML file display styles. Using the plug-in comes with a style sheet, and then at sitemap.XML file directly in the browser will be able to see the effect.
Priority section, you can set the formula for calculating the base priority.
Not evaluated, all articles with the same priority.
Comment according to the article number directly with the current article count divided by the total number of comments get a number. This value may be very low, after all, no comments on that post to General comments of scores, and no comments article, out of nature is 0 then.
Is calculated according to the comments of the article, but it is with the current article count divided by the average value of all the comments, I think this approach is better.
Calculated by Popularity Content plugins, this plugin will display the options you want to install.
Sitemap file location section, the default is the current Blog under the installation directory, you can change the file name. Of course, you can also use custom, you will need to fill out the absolute path of the file and access the Web site.

Sitemap content section, you can set the sitemap.XML file which pages are included.You can select Home pages, articles, a separate page, category pages, archive pages, author pages.

 

Update frequency section, you can set the update frequency of each type of page. By definition, this requires access to certain types of Web site search engine how often times, but this value is only a search engine provides a reference, as long as the actual update frequency to set would be nice.
Priority section, you can set the priority for each page. By definition, this requires priority access to search engines which pages. However, it also as the previous, only for search engines reference. You can set the priority for each page, but the article page is divided into two categories, one is not article page when you turn on automatic calculation of fixed priority, one is to turn on automatic calculation is the minimum priority article page. The minimum priority level is set to 0.5, or other, so that youcan ensure that no comments article is not a priority of 0.

 

Will no longer need to set tube, the plug-in will be updated automatically when a new article is published sitemap.XML file, and Google will regularly read the sitemap.XML file. Plugin authors in the Readme file also recommends that users do not have too many adjustment options, default settings can work very well, and when there are errors or you have a specific need to modify some settings when needed.

WordPress History Document Archive Plugin

Today‘s Clean Archives Reloaded plugin is enabled, this is a historical article archive,and links displayed on a page in the plugin. Clean Archives Reloaded on the WordPress.org page is:

 

The plugin author‘s website at:

http://www.viper007bond.com/

Clean Archives Reloaded the latest version 3.1.10

Clean Archives Reloaded installation and Setup is not very difficult. FTP upload to the/WP-content/plugins directory, plugin is enabled in the background, then create apage, the page content can be filled in two: {cartotalposts} and {cleanarchivesreloaded} (be sure to put the braces into the brackets). The former number of articles displayed blog, which display a collapsible list of article links generated byJavaScripts.

Note: after a lot of testing, I found the plugin after upgrading the latest version 3.1.10 use is very simple, just to generate a page after installing the plugin, added: {cleanarchivesreloaded} (be sure to put the braces into the brackets).

Show results are as follows:

Expand all months
  • October 2011 (7)
    • 25:WordPress and Twitter integration (71)
    • 25:WordPress-Robots Meta plug-in described the plugin adds meta information page (2)
    • 25:Google Analytics for WordPress, Google statistics plugin (1)
    • 25: how to install Google Analytics data analysis in WordPress (1)
    • 24: on application plug-in Dagon Design Sitemap (6)
    • 24:Akismet (Automattic Kismet) spam filtering system (1)
    • 24:WordPress Super SEO plugin All In One SEO Pack PRO hack (0)
  • January 2011 (8)
  • December 2010 (10)
  • November 2010 (29)
  • July 2010 (7)
  • June 2010 (9)
  • May 2010 (8)
  • April 2010 (4)
  • March 2010 (9)
  • February 2010 (10)
  • January 2010 (20)
Effect of using the plug-in, you can see: http://www.52wordpress.NET/

 

Thank you for plugin authors, wrote that excellent plug-in for use by others.