Previously wrote a blog post, using PHP and Memcache to implement the site, the following links to view: http://www.jb51.net/article/51825.htmToday the feature is used in WordPress, and the implementation of the number of visits saved to the database.
MySQL statement
First, in the parameter table, add the default data for the number of accesses
Get all browse times function Get_all_visit_number () {$MC = new Memcache ();
Use
Bored to do a www.jiazhuangma.com, technology does not pass through the background, want to read the data directly in WordPress. Do Ajax read the background data on the Internet casually searched a section of code to use WordPress $wpdb class to read MySQL database, is so casually, found someone else's head to the end of the code, began my mistake trip.
The main problems are:
1,non-object
Chinese charact
Description
Operating system: Windows Server R2
Web server: IIS 8.5
Web program: WordPress
Site Root: C:inetpubwwwroot
Website Domain name: www.111cn.net
To achieve the purpose:
Configure WordPress pseudo Static
Specific actions:
First, verify that IIS 8.5 is installed with IIS URL Rewrite
Open: Control Panel system and security management tools Internet Information Services (IIS) Manager
See U
WordPress 3.5 added a new balloon feature, you can create a cue box, and then point to any element, such as the following example:
This article will teach you how to create a prompt box like this.
First you need to add a script for the prompt box, so you can use the JS method of the Prompt box.
Mount Cue box script
function bing_admin_pointer_enqueue_scripts () {
wp_enqueue_style (' Wp-pointer ');
Wp_enqueue_script (' Wp-pointer ');
}
Since the beginning of last month, the blog's WordPress site, often suffer from all kinds of unknown attacks, performance for the same IP address, in a short period of time to a certain page or a picture to visit, began to think that it is their own articles were reprinted, others of the site was CC attack, but later through the Web site log found, Not so, a large number of IP, in different time period suddenly hit, all of a sudden CPU occupy to 100%,
A few days ago to see a Blog (Forget the name and URL) has a fairly useful comment function. After a guest message, the Data entry box will be hidden as if logged in. Visitors can choose to modify the relevant information before commenting. Give visitors a good user experience. Today I'm porting this feature to my theme, making it easy to share.
Demand
Careful friends may have noticed: when a comment on a WordPress blog again, the data will not ne
From WordPress 3.1 introduced the concept of the toolbar, when the user logged in the foreground and backstage at the top of the page will display a black toolbar, through the toolbar can quickly create new articles, pages, media, users, as well as view articles and comments and other functions, the following figure:
Some WordPress users don't like the toolbar and choose to remove it. This toolbar is sti
WordPress 3.8 started the new design background support for multiple color selection, the default has eight kinds of very beautiful color, you can let users choose their own.
About the color WordPress provides a function Wp_admin_css_color () allows the developer to customize the color, just call the function to complete all the registration operation.
Parameters
Wp_admin_css_color ($key, $
Many bloggers like to use comments in "XXX minutes Ago", article published in "XXX minutes ago" to show the time of the article comments, improve the time display not only can be very intuitive to tell the reader this article or comment on how long it has been, more can enhance the sense of time of comment reply, brother very much like, Because there are so many things that have been pressed in my hand for a while, weekday day and suffer from not surfing the internet, so the theme of the style a
We have to admit that in many free open source CMS programs on the Internet, WordPress is a good web site program from security, stability, and various documentation tutorials. We can use it for personal blogs, corporate websites, and small and medium content management systems. The only drawback, however, is that if we do not optimize and maintain regularly, we will find that the speed is getting slower.
Chiang Kai-shek in the "2
Article Description: 30 new and beautiful WordPress theme templates for designers
If you just want to create a website for yourself, then WordPress is definitely your choice. Many plug-ins, high security, theme templates rich, easy to maintain and management are its advantages, today to you recommend 30 new WordPress theme templates, each has its own u
visitors to find the content of his interest as far as possible, so, the article title should try to include keywords, the title is the core of an article, search engines are also more value an article title, the title of the keyword navigation will also facilitate the promotion of the ranking of the article.
2, in the browser title bar is also a guide to display titles, about WordPress title optimization design, can refer to this article.
3, becau
Wp_title function in WordPress is used to display articles, pages, categories, and so on the title of a function, but on the index of the first page, the function will not show anything. This function has been used in WordPress's official theme, but this function is always ignored in many custom topics.
A detailed explanation of function meaningthe Wp_title function is used to display the title of the page, as in the article page, the title of the ar
The_post_thumbnailThe_post_thumbnail is mainly used in WordPress to print the thumbnails set in the article, and the Get_the_post_thumbnail function can return the HTML code you need as a string.
The use of The_post_thumbnail functions
The_post_thumbnail ($size, $attr)
function arguments
$size refers to the type of thumbnail you want. The default is ' Post-thumbnail ', which is the featured image.
$attr the property settings i
Wp_list_categories function is used in WordPress to list the classification of the system functions, the function has a lot of control output parameters, today suddenly was asked by a friend, so I probably sorted it out.
Because of the built-in extended gadget features in WordPress,So we can display a list of categories in the sidebar or wherever we want without any function.So the wp_list_categories funct
Replaced the VPS, it is necessary to start to move to the site, moving the first problem is the pseudo static WordPress problem. The new VPS uses a LNMP environment and installs the AMH panel. Previously used is the lamp environment Webmin, but the Webmin function is too bloated complex, more memory consumption, and nginx compared to more efficient and stable Apache. So this decision adopts LNMP environment. Although this is more frustrating, but only
I used to discuss the WordPress 2.5 display anomaly under widescreen in an article, almost all of which are designed for 1024x768, and widescreen displays for 1440x900 will show only the left part, using unusual awkward operation, This problem is not in version 2.3, so for widescreen display users, you can modify the admin CSS to achieve a good viewing effect.
After some research, found that changes to become a widescreen version is not difficult, th
Label:We are in the WordPress theme theme configuration, will be downloaded from the site more popular theme, so that their blog looking very cool, there are not smooth when you download the theme has a bug or download the package problem, after the installation of your Web page can not be accessed; We can only manually modify the theme through the backend database.We are in the WordPress theme theme config
WordPress would only prompt your FTP connection informationWhile trying to install plugins or a wordpress updateIf it cannot write to /wp-content directly.Otherwise, if your Web server has a write access to the necessary files,It'll take care of the updates and installation automatically.This method does not require you to have ftp/sftp or SSH access,But it does require your to has specific file permissions
In the 4 years of playing WordPress, witnessed the function of WP more and more powerful at the same time, also feel that WordPress is more and more bloated and complex, is no longer a lot of bloggers think of simple and easy to use, especially for many completely unfamiliar novice, many WP special terminology also smattering, such as " Custom fields, custom thumbnails, custom forms ..... ..... So many cust
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.