Added the favicon In the WordPress, it's easy.
1. Get your favicon icon, and rename it as favicon. ICO
2. Upload the favicon. ICO to the root folder of your WordPress system.
3, modify the header. PHP source code in the theme folder you are using, for my system, it is/root_folder/WP-content // themes/twentytwelve/header. PHP, before the
Done, you can see the result:
Favicon
For WordPress, account management In this respect is relatively low energy. Backstage provides a few content: Name sex, contact method, plus personal description. Then the other content, will give WP code farmers toss. The function is the Subscriber, the author, the administrator so several. So in the case of multi-user, if you want to use WordPress, you may have to work hard.
How to customize the contact
Add_post_metathe Add_post_meta function is a function used in WordPress to add custom field values to an article or page.Its usage is the same as the effect of adding custom field values to an article using a custom column panel in the writing interface when writing an article.
Add_post_meta function DescriptionAdd custom fields to the article.Common uses are: article browsing times, like buttons, SEO plug
This article describes how to add a query string to a link in WordPress by using the add_query_arg () function, you can refer to the query string after the question mark in the link. the format is key = value. Separate multiple query statements with the symbol. The add_query_arg () function is a convenient function provided by WordPress. it can help you
Describes how to add links to WordPress.
Links can be said to be necessary for each independent blog. Many people choose to add links to the sidebar, but creating an independent links page is also a good choice. Plug-ins can easily achieve this, but I like native, can do it by myself, or do it by myself. After a while, the method came out.
Common methodThe proces
In the production of WordPress template , perhaps you will encounter a sidebar sidebar does not fully meet your needs, or too much sidebar content causes the page too long, then we can consider using two or more sidebar.Considering the need to modify the functions.php and sidebar.php files, back up the files before you start just in case.First look at the functions.php file. The beginning of a piece of code in the file is this:if function_exists (' Re
When WordPress is editing logs in the background, there is a word count in the lower left corner of the editing box, but it is only displayed in the background. Can I add the word count statistics function in the front? After studying the program source file, we found that the Chinese version of WP background word count function is achieved through the wp-content \ ages directory zh_CN-word-count.js, that i
First look at the effect
Post-use link address: http://localhost/news/paged/1.html
1. Add filters add the. html suffix using the link address
Add_filter (' Get_pagenum_link ', ' My_get_pagenum_link ', 1, 1);
function My_get_pagenum_link ($url){Return Str_replace ('. html ', ', $url). HTML ';}
2. Adding rewrite rules
if (!is_admin ())//only front page application
{
Add_action (' init ', ' my_post_re
First, login WDCP panel background add site
In the menu on the left, site management-new site, you can create the new domain name site we need. According to Chinese prompts input we need to set the host name, binding domain name, set directory, directory in the www/web corresponding domain name folder, so easier to find.
Second, create a site MySQL database and users
We can create a database and users
This article mainly introduces how to use functions for adding and executing actions in WordPress, and explains the usage of add_action () and do_action () respectively. For more information, see
Add_action () (add action)The add_action () function is used to mount a function to the action hook.
Usage
add_action( $tag, $function_to_add, $priority, $accepted_args );
Parameters
$ Hook
(String) (required) n
Apply_filters () (Create filter)the Apply_filters () function is used to create a filter, most of which are used in functions, is a very important function of the WordPress plug-in mechanism, allowing other themes and plug-ins to modify a value to filter.
Usage
Apply_filters ($tag, $value, $var ...);
Parameters
$tag
(string) (must) the name of the filter.
Default value: None
$value
(mixed) (must) the value to be filtered and return
Friendship links for a separate blog can be said to be a must, there are many people choose to join the sidebar link columns, but the establishment of a separate link page is also a good choice. With Plug-ins can easily do this, but like the original I, can solve their own hands, or to solve their own. After a while, the method came out.
Common methodset up a link page of the steps are relatively simple, first set up a new page template, Ufida chain function tune Ufida chain, plus CSS landscapi
: This article describes how to use functions for adding and executing actions in WordPress. For more information about PHP tutorials, see. Add_action () (add action)
The add_action () function is used to mount a function to the action hook.
Usage
add_action( $tag, $function_to_add, $priority, $accepted_args );
Parameters
$ Hook
(String) (required) name of the action of the mounting function.
Default val
The paging navigation menu is an essential element of a website. today, I will share with you the method of implementing paging navigation using WordPress code that has been used for a long time by Jiemeng. Navigation effect: the implementation method is very simple. 1. put the following code to the last one of functions. php? Gt; functiontwentytw
The paging navigation menu is an essential element of a website. today, I will share with you the method
However, this button is not available in the default wordpress editor. Don't worry. In this section, the silver blog will bring everyone together to add a paging button to the article editor.Add the following code to the function. php function template file of the topic: The code is as follows:Copy code // Add the "next page" button in the
Add_filter () can mount a function onto the specified filter.Usage$tag $function _to_add $priority $accepted _args );Parameters$tag(string) (must) the name of the filter being mounted (the same as the $tag property of the target apply_filters () function).Default value: None$function _to_add(callback) (must) to mount the callback function, refer to the PHP callback function type document.Default value: None$priority(integer) (optional) The order in which the smaller functions are executed first.
Like many park friends, my independent blog Based on WordPress was also plagued by spam messages at the beginning, and I also used several anti-spam plug-ins including akismet and some Chinese please, however, I do not want to see a lot of plug-ins in the background, no matter how fast the blog is loaded or the stability of version updates is not good. Later, I went online to find a method that does not use plug-ins, after comprehensive modification,
can also use this article said the method in the background editor to add their favorite shortcut button, very convenient, has passed my test, very useful.———————Believe that now use wordpress3.0 to publish articles, add an article in the editor will only see a more label (extract article Summary), but sometimes write the article more words, put on a page will affect the reader's interest, so need to be a l
This article describes how to add top-level menus and sub-menus in the WordPress background. For more information, see
Add settings page-add_menu_page functionAdd_menu_page (). This function is used to add top-level menus to the backend, that is, top-level menus like "appearance" and "plug-in.
Functions are described
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.