In the background of WordPress Add top menu and submenu of the function of the detailed, WordPress function in detail
Add Settings page-add_menu_page functionAdd_menu_page (), the function is to add a top-level menu to the back of the table, that is, "appearance", "plug-in" and so on the same top menu.
The functions are described as follows:
For a function para
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
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%,
establishing interfaces with databasesWordPress provides users with a series of function class--wpdb for database operations. The Wpdb class is based on the Ezsql class that Justin Vincent writes and maintains.Notice of UseMethods in the Wpdb class should not be called directly, and global variable $wpdb should be used
Error description: WordPress in the background version upgrade, error, after entering the foreground or backstage, are unable to access the entry, error message as follows:Warning:copy (/home/xxx/public_html/wordpress/wp-admin/menu.php) [Function.copy]: failed to open stream:permission Denied in/home/xxx/public_html/wordpress/wp-admin/includes/
How to Use wp_query
Before talking about wp_query, we need to distinguish two terms:
Wp_query is a WordPress built-in class for processing complex requests (the request content here includes not only articles, but also pages, users, categories and other information ).
$ Wp_query is a wp_query entity object defined in the wp-blog-header.php file that provides information about the current request.
When y
WordPress navigation menu Calls, the general use of the Wp_nav_menu () function, after use found that this function does not provide us with each navigation menu to add custom class interface features!
Search the next, and finally in a foreigner article found in the WordPress itself to provide solutions! Well, WordPress
**/
7
?>
After the file is saved we can see the name of the template you added in the WordPress background page and then click Quick Edit, such as:650) this.width=650; "class=" AlignCenter size-full wp-image-672 "title=" home-page-template "src="/http Www.favortt.com/wp-content/uploads/2011/11/home-page-template.jpg "height=" "width=" 224 "/> After selection
Label:WordPress in wpdb can easily implement database additions and deletions, WordPress developers must use the class! Case: 1. Use the Wpdb class to insert a data table (Wp_person) that you have created. Global $wpdb ;
$data=array(
$_post[' denglu_id '],
$_post[' Password '],
$_post[' user_name ']);
$wpdb->insert ($wpdb->prefix. ' Person ',$data); $wpdb->pre
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.