code to the functions. php file of your topic.Replace the get_avatar function that obtains the Avatar address with my_avatar. The following is an exception: functions. php comment list function:
get_avatar( $comment
Change:
my_avatar( $comment->comment_author_email
Because the my_avatar function can only retrieve user portraits by Email, you need to change the first parameter to the email address in the preceding case.
Get_avatar function introduction:The above method is simple and convenient.
Use of thumbnails in WordPress and related techniques. The use and related skills of thumbnails in WordPress. There are many opportunities for using thumbnails in a blog. they appear on the article list page and related articles at the bottom of the article, how to use and use thumbnails to classify WordPress, and how to use them.
There are many opportunities to
', 'FB _ move_admin_bar ');
For Chrome users, there is a small problem in moving the toolbar to the bottom, that is, when the page is not loaded, the Chrome bottom will display the status information, which will block the WordPress toolbar.
Articles you may be interested in:
How to register and call menus in WordPress
How to implement the second-level navigat
Tips for customizing the color scheme of the background management interface in WordPress: wordpress color scheme. Tips for customizing the color scheme of the background management interface in WordPress. The brand-new background design starting with wordpress color scheme WordPress3.8 supports multi-color selection,
WordPress obtains the number of articles under a specified category and its subcategories, and the number of wordpress articles. WordPress obtains the number of articles under a specified category and its subcategories. wordpress obtains the number of articles under a specific category. sometimes we want to obtain the
');
Wrap in a function, define an array, and then anchored to the action of Init. So WordPress at initialization time, will execute this function to register a custom post Type, because call Register_post_type (), must be before Admin_menu action, in After_setup_ Theme action, so it's best to be anchored to the init action.Many parameters, in order to write tutorials convenient, only list the more commonly
my_avatar function can only retrieve user portraits by Email, you need to change the first parameter to the email address in the preceding case.
Get_avatar function introduction:The above method is simple and convenient. However, you need to pay attention to this step. Make sure that the get_avatar function is used to call the Avatar. Generally, only the old theme is not. If not, just change it.
For example:
Update css/js File Cache in the proxy (s
We have discussed how to install Wordpress. Next we need to familiarize ourselves with WordPress quickly and make some necessary basic settings.
Before you start setting, we recommend that you click each option in the left-side menu bar to see what is used. The following describes some basic settings for a new WordPress site.1. Set personal data
We recommend that
' "; Return $wpdb->get_var ($SQL); }}
Then call the function where it is needed, which provides three ways to call it:
1, the function is paged out in the main loop, and no parameters are provided, the number of articles in the first category is returned:
2, the supplied parameter is a number, and the number is the ID number of the classification, then returns the number of articles that correspond to th
', // alias, that is, the parameter 'xz _ theme_op_page 'transmitted by get // call the function called to display the content );} function xz_theme_op_page () {// content display function echo "I am a topic editing page";} add_action ('admin _ menu ', 'xz _ theme_options_add_page ');
Effect
Add background menu effects
Articles you may be interested in:
How can I solve the problem when I use wordpress's $ wpdb class to read mysql database for ajax?
useless , then you are wrong. The main use of the official default theme is to have a great research value, at least my current WP topic knowledge is mostly through the study of the default theme obtained, today is the Add_theme_page () function.
DescribeAdd_theme_page () function, add page in WordPress background. Here we are generally to add the settings page to use the function, of course, if you are idle egg pain, you can add a page such as perso
, just in the_content (); below ).
Copy codeThe Code is as follows:If (function_exists ('subpage _ nav_link ')){If ($ subpage_nav_link = subpage_nav_link ()){Echo $ subpage_nav_link [0]; // link of the previous Article (page)Echo $ subpage_nav_link [1]; // next (PAGE) Link}}?>
NOTE: if (! $ Subpage_nav_link [0]) to determine whether there is any previous article. Similarly, if (! $ Subpage_nav_link [1]) to determine whether there is any next article.
PS: $ prevText and $ nextText also support ch
Original address: http://www.eastdesign.net/wordpress-seo/
The latest news, the Oriental Design Institute WordPress SEO series of video tutorials are continuing to update the current, in order not to let the video spread too much, set the login permissions, interested users can simply fill out a form to request test account, submit a form to us, We will reply to the test account login password
affects the attachment information of the document. For example, the image url and file name on the attachment details page in the media library are all the meta_value values.
This is also the value of the file name in the homepage Article thumbnail and header image url on the single page under the wordpress topic (several topics I tested.
Well, the root cause is finally found. The problem is how to modify the value.
4. The problem is solved temporar
See a good WordPress tutorial, very suitable for beginners. Share:Creating WordPress theme is not difficult, as long as you start from now to seriously learn this tutorial, starting from 01 step by step, you will become a WordPress theme maker, at least you will modify the existing theme.Here is a zero-based WordPress
As my PHP website has more and more visits to blog development and more comments, Wordpress has more and more visits to blog development and comments as Wordpress does not have the filtering function, wordpress spam comments are getting more and more spam comments because Wordpress messages do not have the filtering fu
() ' Bbfa5b726c6b7a9cf3cda9370be3ee91 '
We just need to understand this, because this information WordPress has been in the Comments_template method, through Wp_get_current_commenter for us to parse the visitor information from the Cookie. For example, we can use $comment_author directly in the comment.php file to get the name of the guest that is stored in the Cookie.
Code implementation
The next implementation is simple, and we determine if the vis
Write a PHP script to clear the WordPress header redundancy code. Compile a PHP script to clear the WordPress header redundancy code. There are many wordpress redundant header code, including the wordpress version, post and post, first article, home page me PHP script to clear Word
In function. the following code is inserted in php to enable the login user to view the content of the article. insert [members_only] [menmbers_only] where the user needs to view the content of each article. however, after I use the FooGallery short
Write a PHP script to clear the WordPress head redundant code to explain the way, WordPress redundancy
WordPress Head code very much, including WordPress version, contextual, the first article, home meta information and other redundant code, these are not meaningful to bloggers, but also on the site's security has a c
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.