changed
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.
Articles you may be interested in:
How to filter links and SQL statements in WordPress
How to register and call menus in WordPress
PHP code example for u
WP initialization process: When you enter root directory of the index.php page, look at the index.php page.Define (' Wp_use_themes ', true);/** Loads the WordPress environment and Template * *Require ('./wp-blog-header.php '); ---include/wp-blog-header.php in the?> you will find that it will go to call the root directory under wp-blog-header.php, we continue to look at wp-blog-header.php.if (!isset ($wp _di
Document directory
Thumbnail of the topic homepage:
Main Theme features:
New Horizon wordpress theme demo address:
New Horizon v1.0.3 wordpress topic [size: 1018.62 KB] [official full genuine]:
The New Horizon wordpress topic is a Wordpress topic that can be used to display blogs and works on websites. New Ho
of the custom default avatar, and you can modify the image's address yourself. It is recommended that you put the avatar under the subject images file you are using.
Lazy load WordPress Comment avatarModify HTML Structure
Because of the problem in the new browser, we can no longer use the usual way of writing HTML pictures, but rather to write the placeholder to the SRC attribute, and to write the real picture address on the Data-original property.
-movie_columns", "Movie_edit_columns");
function Movie_custom_columns ($column) {
global $post;
Switch ($column) {case
"Movie_director":
Echo Get_post_meta ($post->id, ' _movie_director ', true);
break;
}
}
function Movie_edit_columns ($columns) {
$columns [' movie_director '] = ' director ';
return $columns;
}
The Column Director field is added and read from every article. So our list becomes:
OK, our back end part is so happy to finish. Open the Build good li
Solutions to common WordPress blog errors
WordPress is a mainstream Blog building platform. WordPress is the world's most advanced weblog program. Currently, most of the programs developed are based on it. It can better grasp the search engine. After you use WordPress and master several plug-ins, you don't have to worr
This article mainly introduces the PHP core method for creating navigation menus in WordPress, that is, the function and usage of parameters related to wp_get_nav_menu. If you need it, refer to WordPress 3.0 to introduce the navigation menu function, it makes page navigation and link management easy to use. WP provides you with a menu management page and multiple call
This article mainly introduces the PHP core method for creating navigation menus in WordPress, that is, the function and usage of parameters related to wp_get_nav_menu. if you need it, refer to WordPress 3.0 to introduce the navigation menu function, it makes page navigation and link management easy to use. WP provides you with a menu management page and multiple call
Site may be migrated from time to time, or wrong operation, the database is gone, so, I in order to Time-saving, wrote a wordpress one-click Reinstall Script.
I'm just writing a ballpark figure. You can modify the script according to your own needs.
Conditions of Use:
This script is mainly used in the case of Web site migration, when fully reinstalled. In other words, I only import the database operation. WordP
This article mainly introduces how to use JavaScript to implement the second-level navigation menu in WordPress. This article first describes the basic PHP navigation menu practices in WordPress, for more information, see
Navigation menuNavigation menus have long been "deeply rooted in the hearts of the people", and the applications on blogs are increasingly important and diverse. from the beginning of this
have to have a preliminary help interface on the topic.Click position
Customize the Help button location
As shown in figure
Custom help
SummarySet_help_sidebar () // The method can only be used once. The last call prevails. Here you can add something like your api address or advertisement.The add_help_tab () method can be used multiple times. Each time a tag is used, there will be one more. Of course, you need to set the corresponding $ help value.
===================================================== ===========
/*
Footer.php is similar to header.php, and the purpose of writing this file is to streamline the code and improve the reusability of the code.
Create a footer.php in the theme directory and use it in index.php or pages that you want to invoke the footer.php page
*/
Get_footer ();//function and Get_header () similar
/*
Add Wp_footer on the footer.php page for improved compatibility
*/
Wp_footer ();
/*
Wp_footer () and Wp_head () a
(page) Link
echo $subpage _nav_link[1]; Next (page) Link
}
}
?>
Note: You can use if (! $subpage _nav_link[0]) to determine if there is no previous article, the same if (! $subpage _nav_link[1]) to determine if there is no next.
PS: $prevText and $nextText also support character combinations, such as Subpage_nav_link (' oo%title xx '), the previous article linked to the article will become "OO page name xx"
Another practical article: the implementation of
This is the second part of the WordPress development toolkit, including the official WordPress database, blank themes, WordPress design inspiration, icon library, WordPress theme release, and resources such as free and paid theme downloads. For the first part, see the WordPress
Even if WordPress is not the most popular in the world, it is also one of the best open source blogs and content management systems. Over 2.5 million of websites and blogs use this award-winning network software. In addition, the potential user base of WordPress is also expanding. many of them are developers, designers, contributors, and free writers. Even if my own Wor
Why use WordPress themes?A WordPress topic consists of a series of files and CSS style sheets to form a beautiful WordPress website. Each topic is different, so that WordPress users can change the appearance of the WordPress website at any time.You may want to develop a
You may also like
WordPress exquisite free theme sharing series Full Set
Share 20 beautiful WordPress portfolio themes
32 exquisite WordPress 3.0 free themes
The latest 35 exquisite WordPress free themes
Share 30 best WordPress e-commerce themes
This article shares
We often need to call global variables of the wordpress system during theme development or plug-in development using wordpress, such as the post object $ post, wordpress version $ wp_version, database Object $ wp_query, etc. If we understand these objects, It is very helpful for our
attack. A Core Command server can use the DNS or NTP protocol to respond to the amplification attack, increasing the original attack intensity by 50-times. Any type of amplification attacks will benefit hackers.
Free up big attacks with brute force guesses through Wordpress XML-RPC
One of the hidden features of the XML-RPC is that you can use the system. multicall method to make multiple attempts in a single request, which is very useful. It allows a
To achieve this step, you must first find the id of the directory to be blocked. How can you view the wordpress category id? There are two methods:
View the category ID in the wordpress background
First, go to the wordpress category directory and place the cursor to the right-side category name or the edit button under the name. Then, the browser's status bar (
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.