WordPress:Answers-Modifying

来自站长百科
Xxf3325讨论 | 贡献2008年9月19日 (五) 09:39的版本 (新页面: <div style="border:1px solid blue; background: #CCFFE6; padding:10px; margin:10px; font-size:130%"> These FAQs have been deprecated. You will find the new updated '''Frequently Asked Ques...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

These FAQs have been deprecated. You will find the new updated Frequently Asked Questions on the new pages for the WordPress:FAQ.

Back to FAQ

Password Protected text

To create password protected text, see Line 19 of wp-includes/template-functions-post.php for that information.

Comments Off

To turn your comments feature off:

Line 58 of wp-includes/template-functions-comment.php has the words 'Comments Off' (1.2mingus)
Line 98 of wp-includes/template-functions-comment.php has the words 'Comments Off' (1.3)

Do not mail my comments

This will stop WordPress:WordPress from sending you a mail if the email address you used when you posted the comment was the same as the email address for the author of the post (which is the address the notification email gets sent to). This applies to v1.2 / 1.2.1 code ONLY.

In functions.php change the following line:

if ('' == $user->user_email) return false; // If there's no email to send the comment to

to

if ('' == $user->user_email || $comment->comment_author_email == $user->user_email) return false; // If there's no email to send the comment to

Add an image to your RSS

Information on how to add an image to your RSS feed for WordPress 1.5:

Information on how to add an image to your RSS feed for WordPress 2.0+:

Back to FAQ