WIKI使用導(dǎo)航
站長(zhǎng)百科導(dǎo)航
站長(zhǎng)專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計(jì)算
- 微博營(yíng)銷
- 虛擬主機(jī)管理系統(tǒng)
- 開放平臺(tái)
- WIKI程序與應(yīng)用
- 美國(guó)十大主機(jī)
WordPress:FAQ Working with WordPress
Administration
Can my posts have titles instead of /index.php?p=76?
See:
管理
我的文章可以有標(biāo)題而不是 /index.php?p=76?
參見:
How can I find out if I have mod_rewrite?
To get information about your server, you can use the PHP Info function:
- Paste this into a new Notepad / BBEdit file
<?php phpinfo(); ?>
- Save as info.php
- Upload to server. Visit in your browser (www.example.com/info.php)
That will give you info about your php version and mod_rewrite.
The info.php file returns a page outlining the details of your PHP installation. You can see if mod_rewrite is loaded. Under the apache header, look in the Loaded Modules section and see if mod_rewiite is listed.
如果我有mod_rewrite我如何找出?
要想得到關(guān)于你的服務(wù)器的信息,你可以使用PHP Info 功能:
- 把下邊語句粘貼到一個(gè)新的記事本 / BBEdit 文件中
<?php phpinfo(); ?>
- 另存為 info.php
- 上傳到服務(wù)器. 在瀏覽器中訪問 (www.example.com/info.php)
瀏覽器會(huì)顯示出關(guān)于你的php 版本和 mod_rewrite的信息.
info.php文件返回一個(gè)列出你的PHP安裝詳細(xì)信息的頁面. 你可以查看是否mod_rewrite 被載入. 在apache頁眉下面, 查看Loaded Modules 部分,可以看到是否mod_rewiite 列出.
How do I change file and folder permissions?
See:
我如何改變文件和文件夾許可?
參見:
Why are the version numbers not in any particular periodic sequence?
The version number for improved versions of WordPress might not follow a strictly monotonic or periodic numerical (or in the case of test releases, alphabetical) sequence, since the version numbers reflect relative progress, and the changes made to existing or previous versions. So, for example, since v1.2 is a majorly revamped version of v1.0 (with about 60% of the code having been touched), 1.1 was ’skipped’ along the way.
為什么版本號(hào)不是按照任何特定的周期序列?
WordPress更新版本的版本號(hào)WordPress 可能不是按照某個(gè)嚴(yán)格的不變的或者是周期數(shù)字排列(或者是測(cè)試版的按字母順序排列), 因?yàn)榘姹咎?hào)反應(yīng)出了相關(guān)程序, 現(xiàn)有或者前版本的改變。這樣,如,因?yàn)榘姹?.2主要是修正版本1.0 (大約是60% 的代碼經(jīng)過改動(dòng)), 1.1 就被 ’跳過’了。
How do I turn on Permalinks, and what do I do about the errors?
See:
我如何打開Permalinks, 我該如何處理錯(cuò)誤?
參見:
What are User Levels for and what permissions do different User Levels have?
See:
用戶等級(jí)有什么用不同的等級(jí)有什么權(quán)限?
參見:
Does the 644 permissions on wp-config.php compromise the username and password to all other users on my shared server?
This is a limitation of the way PHP is set up on your server. If you previously used MovableType, Perl was probably set up with suexec so Movable Type executed as your user. In this case, PHP is running as the web server user, which is why it has to be at least 444. There is phpsuexec but it seems many hosts don’t use it.
wp-config.php的644權(quán)限會(huì)危及在我的共享服務(wù)器上的其他用戶的用戶名和密碼嗎?
這是一個(gè)PHP 在你的服務(wù)器上安裝時(shí)的局限. 如果你以前使用了MovableType, 帶有suexec 的Perl 可能已經(jīng)安裝,這樣 Movable Type 作為你的使用者來執(zhí)行. 在這種情況下, PHP 作為服務(wù)器用戶運(yùn)行。這就是為什么必須至少是 444. 有一個(gè)phpsuexec但是似乎很多主機(jī)都不使用它.
However this is often not an issue on modern shared hosts because even though the file is “world" readable each account is set up with a “jailshell" which keeps people locked in their home directory, and PHP can be easily modified with an open_basedir restriction to keep people from writing PHP scripts to read your files. If you are really concerned, you should contact your host to see what measures they are taking.
盡管如此,這通常在現(xiàn)代共享主機(jī)上不是什么問題,因?yàn)槲募请S便閱讀的,但是每個(gè)帳戶建立時(shí)帶有“jailshell" ,保證人們被鎖在自己的目錄中, PHP 還可以輕易的使用 open_basedir進(jìn)行約束,保證人們不能改寫PHP腳本來閱讀你的文件. 如果你實(shí)在需要,你可以聯(lián)系主機(jī),看看可以采取什么措施。
How do I redirect users back to my blog's main page after they login?
Install the plugin, From where you came, and if your users clicked the Log in link from your main page, they will be directed back to that page after they login.
用戶登陸后我如何重定向用戶回到我的blog主頁?
安裝插件,From where you came, 如果你的用戶從主頁點(diǎn)擊了Log in 鏈接,他們就會(huì)在登陸后被直接返回。
How do I change permissions for my files so I can edit them using the Template Editor?
See:
我如何為我的文件改變權(quán)限,這樣我可以使用模板編輯器編輯它們?
參見:
How do I prevent my images from being hot-linked by another website?
You can use your .htaccess file to protect images from being hot linked, or, in other words, being linked-to from other websites. This can be a drain on your bandwidth, because if someone links directly to the image on your site, then you lose the bandwidth.
Clockwatchers’ htaccess image guide provides more details.
You can use this tool to check if the images are protected properly, and that has a few extra tips too.
For a more sophisticated method of preventing hotlinking see A List Apart's Smarter Image Hotlinking Prevention.
我如何防止我的圖片被別的站點(diǎn)做成熱鏈接?
你可以使用你的.htaccess文件來保護(hù)圖片不被熱鏈接, 或者, 換句話說, 被別的網(wǎng)站鏈接到了. 這可能會(huì)影響你的帶寬,因?yàn)槿绻橙酥苯渔溄拥侥愕恼军c(diǎn)上的圖片,你就失去了這部分帶寬。
Clockwatchers的htaccess 圖片指導(dǎo) 給出了更多詳細(xì)內(nèi)容.
你可以使用這個(gè)工具來查看是否圖片被適當(dāng)?shù)谋Wo(hù),這也有幾個(gè)額外的小提示。
要想得到對(duì)付熱鏈接的更好的辦法請(qǐng)查看A List Apart's Smarter Image Hotlinking Prevention.
How do I backup and restore my WordPress database using phpMyadmin?
See:
我如何使用phpMyadmin備份和恢復(fù)我的WordPress數(shù)據(jù)庫?
參見:
How do I prevent comment flooding?
Comment flooding is when a lot of comments (probably spam) are posted to your website in a very short duration of time. Mark Ghosh's article, Comment flood prevention-a really simple solution, and the related Comment flood prevention hack, allows you set a time interval between each comment to prevent successive comments from being posted too soon.
我如何阻止灌水?
灌水是當(dāng)很多的回帖(可能是垃圾信息)在很短的一個(gè)持續(xù)時(shí)間段在你的站點(diǎn)上同時(shí)出現(xiàn)。 Mark Ghosh's的文章, 阻止灌水-一個(gè)非常簡(jiǎn)單的解決方法, 以及相關(guān)的組織灌水hack, 允許你設(shè)置一個(gè)每?jī)蓚€(gè)貼之間的時(shí)間間隔,可以防止回帖太快。
A copy of the code modification is given below (this is for WP 1.2) :
In wp-comments-post.php (between the comments, you should recognize the place), add the following:
// Simple flood-protection $lasttime = $wpdb->get_var("SELECT comment_date FROM $tablecomments ORDER BY comment_date DESC LIMIT 1″); if (!empty($lasttime)) { $time_lastcomment= mysql2date(’U', $lasttime); $time_newcomment= mysql2date(’U', $now); if (($time_newcomment - $time_lastcomment) < 300) die( __(’Sorry, this blog only allows a new comment once every 300 seconds. If you really want to write a comment, just wait a few and hit refresh on this page. Chances are you tried to add a comment about halfway between 0 and 300 seconds. Comment flooders are annoying. Thank you for being patient.’) ); }
代碼修改的一個(gè)附件如下 (適用WP 1.2) :
在wp-comments-post.php (在回帖中間,你應(yīng)該找到合適的地方), 加入如下代碼:
// Simple flood-protection $lasttime = $wpdb->get_var("SELECT comment_date FROM $tablecomments ORDER BY comment_date DESC LIMIT 1″); if (!empty($lasttime)) { $time_lastcomment= mysql2date(’U', $lasttime); $time_newcomment= mysql2date(’U', $now); if (($time_newcomment - $time_lastcomment) < 300) die( __(’Sorry, this blog only allows a new comment once every 300 seconds. If you really want to write a comment, just wait a few and hit refresh on this page. Chances are you tried to add a comment about halfway between 0 and 300 seconds. Comment flooders are annoying. Thank you for being patient.’) ); }
Why can't I delete the uncategorized Category?
Any Category with a non-zero value for # of Posts in the Administration > Manage > Categories cannot be deleted. The uncategorized Category might be assigned to some Posts, but all Pages are assigned the uncategorized Category. So even though there may be no posts assigned to the uncategorized Category, Pages are included in the count of # of Posts.
The default category cannot be deleted even if it is empty, however you can specify your default categories for posts or links on the Options - Writing page of the admin panel.
為什么我不能刪除未分類的分類?
任何Administration > Manage > Categories中# of Posts 值不為零的分類不能 被刪除. 未分類的 分類必然指向某個(gè)文章,但是所有 頁面 指向這個(gè)未分類的 分類.這樣盡管可能沒有文章指向這個(gè)未分類的 分類,頁面還是包含在 # of Posts的記錄當(dāng)中。
The default category cannot be deleted even if it is empty, however you can specify your default categories for posts or links on the Options - Writing page of the admin panel.
默認(rèn)的分類不能被刪除,即使它是空的,盡管如此你可以在管理面板中的Options - Writing為你的帖子或者鏈接指定你的默認(rèn)分類。
Why is there no Page Template option when writing or editing a Page?
If there is no Page Template option when writing or editing a Page it may because there is no template file with the proper structure. For the Page Template box to be available to assign to a Page there must be a least one template file in your theme that has a structure at the beginning of the template file that looks like this:
<?php /* Template Name: Links */ ?>
That example is from the WordPress Default themes wp-content/themes/default/links.php file.
See also:
為什么寫或者編輯頁面時(shí)沒有頁面模板操作?
如果寫或者編輯頁面時(shí)沒有頁面模板操作,可能是因?yàn)闆]有 帶有合適結(jié)構(gòu)的模板文件。 為了讓頁面模板框可用來分配 頁面,你的主題中必須至少有一個(gè)模板文件,在模板文件開頭的地方擁有如下代碼:
<?php /* Template Name: Links */ ?>
這個(gè)例子來自WordPress 默認(rèn)主題wp-content/themes/default/links.php file.
參見:
Configuration
配置
How can I change how the date and / or time is displayed?
See:
我如何才能改變?nèi)掌? 或者時(shí)間如何顯示?
參見:
How can I control comments people make?
See:
我如何控制別人的評(píng)論?
參見:
What do the Discussion Options mean?
See:
Discussion Options 意味著什么?
參見:
How do I install plugins?
See:
我如何安裝插件?
參見:
How can I change what appears between Categories when I post in more than one Category?
To configure the way the post's categories display, open the index.php file and find the line <div class meta>. There you will see the following code:
<?php the_category() ?>
Inside of the parentheses ( ) and quote marks, add or change this to reflect the new look you desire.
當(dāng)我建立不止一個(gè)分類的時(shí)候,我如何才能更改分類之間的外觀?
要想設(shè)定分類的顯示, 打開index.php文件然后找到 <div class meta>. 你會(huì)看到如下代碼:
<?php the_category() ?>
圓括號(hào)( ) 和引號(hào)之內(nèi), 添加或者更改來得到你想要的新界面.
If you would like to have commas between the categories, the tag should read:
<?php the_category(',') ?>
If you would like to have an arrow, the tag would look like this:
<?php the_category(' > ') ?>
If you would like to have a bullet, the tag would look like this:
<?php the_category(' • ') ?>
If you would like the "pipe" ( | ) between the categories, the tag would look like this:
<?php the_category(' | ') ?>
Use your imagination and creativity to make the separations in the categories look any way you like.
如果你想讓分類中間是逗號(hào),標(biāo)簽如下:
<?php the_category(',') ?>
如果你想要箭頭,標(biāo)簽如下:
<?php the_category(' > ') ?>
如果你想要分隔符,標(biāo)簽如下:
<?php the_category(' • ') ?>
如果你想要"豎線", ( | ) 標(biāo)簽如下:
<?php the_category(' | ') ?>
運(yùn)用你的想象力和創(chuàng)造力,讓分類之間的分隔以你喜歡的方式呈現(xiàn)出來。
Why are all the comments being moderated?
Go to the Options > Discussion panel and make sure that An administrator must approve the comment (regardless of any matches below) is unchecked. With that option selected, all comments are sent to the moderation queue to await approval. Make sure that Hold a comment in the queue if it contains more than x links is not blank and contains a number higher than zero. If this value is blank or zero, all comments containing links will be moderated. If the option mentioned above is unchecked, the link moderation value is higher than zero, and you still have this problem, your WordPress:Spam Words list probably has blank lines, punctuation marks, or single letters between the information in the list. There should be spaces between the listed items or each item must be on its own line. If you have done this, then upgrade the comment spam plugins you have installed. If this continues to be a problem, deactivate the comment spam plugins one by one to determine the culprit and contact the plugin author for help.
為什么所有的評(píng)論必須審核?
找到Options > Discussion面板確定An administrator must approve the comment (regardless of any matches below) 是未選中狀態(tài). 如果選中這個(gè)選項(xiàng), 所有的評(píng)論會(huì)被發(fā)送到隊(duì)列中以等待審核。確認(rèn)Hold a comment in the queue if it contains more than x links 是非空的,包含一個(gè)大于零的數(shù)字。如果這個(gè)值是空白或者零,所有的評(píng)論包含的鏈接都會(huì)被調(diào)整。如果上面提到的操作都是未選中的,鏈接調(diào)整值大于零,你還會(huì)碰到問題, 你的 垃圾信息詞語 列表信息中可能會(huì)有空行,標(biāo)點(diǎn)或者單一的字母。在列表項(xiàng)目之間必須有空格或者每個(gè)項(xiàng)目必須在它自己的那一行中。如果你完成這些后,然后更新一下你安裝的評(píng)論垃圾信息插件。如果問題仍然存在,一個(gè)一個(gè)的禁用評(píng)論垃圾信息插件來確定問題出在哪里,聯(lián)系插件作者尋求幫助。
How do I stop people from posting HTML in comments?
Acceptance of HTML tags in the comments field is managed in the file kses.php, located in the wp-includes folder.
Open this file in a text editor, and locate the list of HTML tags near the top of the file. Each HTML tag is listed on a separate line, in the construction of a PHP array of allowed tags. Lines which begin with // are commented-out, or disabled, so lines which begin with // designate HTML tags that are not allowed in comments.
To stop people from posting HTML in comments, edit your kses.php file as desired to allow or disallow specific HTML tags in comments, by adding // to the very beginning of the appropriate lines of the list. To exclude all HTML tags, comment out all lines which allow HTML tags. Be sure to save your file when done.
Note that while you could simply delete the lines instead of commentng them out, by adding // at the start of the line you achieve the same result, while preserving the list of tags for possible re-enabling at a later date.
如何阻止別人發(fā)布HTML 評(píng)論?
是否允許評(píng)論區(qū)域的HTML 標(biāo)簽由kses.php文件管理,該文件在wp-includes 文件夾中。
使用文本編輯器打開這個(gè)文件, 把HTML 標(biāo)簽列表定位在文件頂部。每個(gè)HTML 標(biāo)簽都列在一個(gè)單獨(dú)的行,在允許的標(biāo)簽中的一個(gè)PHP數(shù)組結(jié)構(gòu)中。以// 開頭的行都是commented-out, 或者是禁用的。所以以//開始的指定的HTML標(biāo)簽都是不 允許出現(xiàn)在評(píng)論中的。
要想阻止人們?cè)谠u(píng)論中添加HTML, 編輯你的 kses.php 文件,按照你想要的,允許或者不允許特定的HTML標(biāo)簽出現(xiàn)在評(píng)論中,可以通過添加//到列表的適當(dāng)?shù)男械淖钋懊鎸?shí)現(xiàn)。 要想阻止所有的HTML標(biāo)簽, 就注釋掉所有允許HTML標(biāo)簽的行. 確認(rèn)完成后保存文件。
注意如果你可以刪除這些行的話,最好還是用注釋掉來代替刪除, 通過在每行開始的地方添加//來達(dá)到相同的結(jié)果,這樣可以確保將來可能想重新激活這些標(biāo)簽。
How do I disable comments?
First, unchecked Allow people to post comments on the article on the Options > Discussion panel. This will only disabled comments on future posts. Now, to completely disable comments, you will have to edit each past post and uncheck Allow Comments from the Write Post SubPanel. Alternatively, you could run this MySQL query from the command line on a shell account or using WordPress:phpMyAdmin: UPDATE wp_posts SET comment_status="closed";
If your goal is to permanently disable comments, then you should delete the wp-comments-post.php file as well.
我如何禁用注釋?
首先,F(xiàn)irst, unchecked Allow people to post comments on the article on the Options > Discussion panel. This will only disabled comments on future posts. Now, to completely disable comments, you will have to edit each past post and uncheck Allow Comments from the Write Post SubPanel. Alternatively, you could run this MySQL query from the command line on a shell account or using WordPress:phpMyAdmin: UPDATE wp_posts SET comment_status="closed";
If your goal is to permanently disable comments, then you should delete the wp-comments-post.php file as well.
我該如何禁用trackbacks 和pingbacks?
首先在 Options > Discussion 面板中,取消選中Allow link notifications from other Weblogs (pingbacks and trackbacks.). 這只是在將來的文章中禁用了trackbacks 和 pingbacks ?,F(xiàn)在,完全禁用trackbacks 和 pingbacks,你將不得不編輯每個(gè)過去的文章并且從Write Post子面板取消選中Allow Pings 作為選擇,在一個(gè)外殼賬號(hào)上從命令行運(yùn)行 MySQL 查詢或者使用PHPMyAdmin: UPDATE wp_posts SET ping_status="closed";
如果你的目標(biāo)是永遠(yuǎn)禁用trackbacks 和pingbacks, 那么你還應(yīng)該刪除 wp-trackback.php 文件。
How do I disable my RSS or syndicated feeds?
To disable your RSS or syndicated feeds, you must delete the wp-atom.php, wp-commentsrss2.php, wp-feed.php, wp-rdf.php, wp-rss.php, and wp-rss2.php files.
我如何禁用 RSS 或者是 syndicated feeds?
想禁用RSS 或 syndicated feeds, 你必須刪除wp-atom.php, wp-commentsrss2.php, wp-feed.php, wp-rdf.php, wp-rss.php, 和 wp-rss2.php文件。
How do I change the site admin name?
To change your Admin Name, in the Administration Panel, choose the Users->Your Profile tab. Make your changes there. However, you are not able to change the username from within the Administration panel. In order to do this you must directly edit the MySQL database, however this is not recommended as your username is not often seen by other users.
See:
我如何更改 站點(diǎn)管理 的名字?
要想改變你的管理名字,在Administration Panel中,選擇 Users->Your Profile 標(biāo)簽. 在這里進(jìn)行更改。盡管如此,你不能在管理面板中更改用戶名 。為了更改名字你必須直接編輯 MySQL 數(shù)據(jù)庫。盡管如此,建議不要該你的用戶名,因?yàn)閯e人并不能經(jīng)??匆娔愕拿?。
參見:
How do I find the absolute path I need for uploading images?
To find the absolute path of a page, absolutepath.zip will help you. Download, unzip, ftp to the location of the page / image / directory and then call the file in your browser - http://www.example.com/images/absolutepath.php
我如何找到所需的絕對(duì)路徑上傳圖片?
為了找到一個(gè)頁面的絕對(duì)路徑,absolutepath.zip 可以幫助你。下載,解壓縮,上傳到page / image / directory 的位置,然后在瀏覽器中瀏覽文件 - http://www.example.com/images/absolutepath.php
Which files do I change to alter the way my blog looks?
The following files affect the public display of your site, and each can be easily changed by using the Built-in Editor from the Templates option in your admin screen:
* index.php This affects the layout of your content.
* style.css This is how the style and presentation of your blog is controlled.
* wp-comments.php This controls the layout of user-submitted comments and trackbacks, and the comments submission form.
* wp-comments-popup.php Only needed if you decide to use a popup comments box. (Popup comments are off by default).
我可以改變哪個(gè)文件來替換我的blog外觀?
以下幾個(gè)文件影響你的站點(diǎn)的外觀, 通過管理界面的Templates操作里的內(nèi)建編輯器,每一個(gè)都可以很容易的做出改動(dòng):
* index.php 影響內(nèi)容的版面.
* style.css 控制你的blog的樣式和界面.
* wp-comments.php 這個(gè)控制用戶提交注釋和trackbacks,還有評(píng)論提交的版面 .
* wp-comments-popup.php 只有當(dāng)你決定使用 popup comments box.的時(shí)候才需要 (Popup comments 默認(rèn)時(shí)是關(guān)閉的).
Can I have popup comments?
To enable popup comments, choose the appropriate method for the version of WordPress you are using.
我能擁有popup comments嗎?
想要激活popup comments, 根據(jù)你使用的WordPress版本選擇合適的方法.
WordPress version 2.0 Default Theme
WordPress 2.0版本默認(rèn)主題
Inside header.php add this line:
<?php comments_popup_script(); ?>
above this line:
<?php wp_head(); ?>
在header.php 內(nèi)加入該行:
<?php comments_popup_script(); ?>
添加在下面這行之上:
<?php wp_head(); ?>
For example:
<?php comments_popup_script(); ?> <?php wp_head(); ?> </head>
例如:
<?php comments_popup_script(); ?> <?php wp_head(); ?> </head>
WordPress 2.0 Classic Theme
In the file header.php locate this line (line 21):
<?php //comments_popup_script(); // off by default ?>
And remove the first comment markers, changing it to this:
<?php comments_popup_script(); // off by default ?>
WordPress 2.0 經(jīng)典主題
在文件header.php中找到這行 (第21行):
<?php //comments_popup_script(); // off by default ?>
然后刪除第一個(gè)注釋標(biāo)記,更改為:
<?php comments_popup_script(); // off by default ?>
WordPress version 1.5 Default Theme
Inside header.php add this line:
<?php comments_popup_script(); // off by default ?>
below this line:
<?php wp_get_archives('type=monthly&format=link'); ?>
Example:
<?php wp_get_archives('type=monthly&format=link'); ?> <?php comments_popup_script(); // off by default ?> <?php wp_head(); ?>
WordPress 1.5版本默認(rèn)主題
在header.php 添加 該行:
<?php comments_popup_script(); // off by default ?>
在下面這行代碼之下:
<?php wp_get_archives('type=monthly&format=link'); ?>
例如:
<?php wp_get_archives('type=monthly&format=link'); ?> <?php comments_popup_script(); // off by default ?> <?php wp_head(); ?>
WordPress version 1.5 Classic Theme
Inside header.php is this line:
<?php //comments_popup_script(); // off by default ?>
Change that to
<?php comments_popup_script(); // off by default ?>
WordPress version 1.2
Inside index.php is this line:
<?php //comments_popup_script(); // off by default ?>
Change that to
<?php comments_popup_script(); // off by default ?>
WordPress 1.5 版本經(jīng)典主題
在 header.php內(nèi)有如下這行代碼:
<?php //comments_popup_script(); // off by default ?>
更改為
<?php comments_popup_script(); // off by default ?>
WordPress 1.2版本
index.php 內(nèi)有如下這行代碼:
<?php //comments_popup_script(); // off by default ?>
更改為
<?php comments_popup_script(); // off by default ?>
How do I upload images?
To permit images to be uploaded to your site:
From the admin panel, go to Options -> Miscellaneous
- Select the option to Allow File Uploads
- If you need help with finding the absolute path, see [[WordPress:#How_do_I_find_the_absolute_path_I_need_for_uploading_images.3F|How do I find the absolute path I need for uploading images?]].
- If you need help with changing permissions, visit WordPress:Changing_File_Permissions.
- Then check main menu across the top. Click Upload
- In Wordpress 2.0, go to Write -> Write Post or Write -> Write Page and use the upload interface therein.
我如何上傳圖片?
要想允許上傳圖片到你的站點(diǎn):
從管理面板中找到Options -> Miscellaneous
- 選擇Allow File Uploads
- 如果你需要找到絕對(duì)路徑的幫助信息,參見 [[WordPress:#How_do_I_find_the_absolute_path_I_need_for_uploading_images.3F|我如何找到所需的絕對(duì)路徑上傳圖片?]].
- 如果你需要更改許可的幫助信息,參見 更改文件許可.
- 然后查看頂部的主目錄,點(diǎn)擊Upload
- Wordpress 2.0中,找到Write -> Write Post 或者 Write -> Write Page 然后使用其中的上傳界面。
Can I change where the WordPress Database Plugin saves the backups?
Currently (as of WordPress 2.0) the WordPress Database Plugin saves the backups in the folder wp-content/backup-xxxxxx (where xxxxxx is a randomly generated sequence). To change the folder used, change the wp-db-backup.php file.
In Version 1.7 of the WordPress Database Plugin you would change line 22 of wp-db-backup.php where it says
define('WP_BACKUP_DIR', 'wp-content/backup-' . $rand);
to something like:
define('WP_BACKUP_DIR', 'mydir/mysubdir');
我可以改變WordPress Database Plugin 把備份保存在哪嗎?
通常(到WordPress 2.0為止) WordPress Database Plugin 把備份保存在文件夾 wp-content/backup-xxxxxx (xxxxxx 是一個(gè)隨機(jī)生成的序列號(hào)). 想改變使用的文件夾,改變wp-db-backup.php 文件就可以了.
在WordPress Database Plugin版本1.7,你可以改變第22行的 wp-db-backup.php ,內(nèi)容如下
define('WP_BACKUP_DIR', 'wp-content/backup-' . $rand);
把上邊的語句改成這樣:
define('WP_BACKUP_DIR', 'mydir/mysubdir');
Modifying
Can I change the Smilies?
See:
修改
我可以改變Smilies嗎?
參見:
How do I edit files?
See:
我如何編輯文件?
參見:
What is The Loop?
See:
什么是 Loop?
參見:
How can I change the URL-structure for my posts?
See:
我如何改變我的文章中的URL結(jié)構(gòu)?
參見:
How can I change URL-structure for my posts on a Windows server?
See:
我如何改變Windows 服務(wù)器上的文章中的URL結(jié)構(gòu)?
參見:
How do I use WordPress Template Tags to change what is displayed on the blog?
See:
我如何使用WordPress 模板標(biāo)簽來更改blog上顯示的內(nèi)容?
參見:
How do I get All links to open in a new window?
Put this inside the <head> section of your Theme's template header.php file:
<base target="_blank" />
See:
我如何讓所有 鏈接都在新窗口中打開?
把下邊的語句放到你的主題的template header.php文件的<head>部分:
<base target="_blank" />
參見:
How can I add an image to my RSS feed?
See:
我如何添加圖片到我的RSS feed?
參見:
How can I stop my own comments being mailed to me?
WordPress version 1.2 This will stop WP 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
我如何阻止我自己的評(píng)論被郵寄給我?
WordPress 1.2版本 如果你發(fā)表回帖時(shí)使用的郵件地址和這個(gè)文章的作者郵件地址相同的話將會(huì)阻止WP給你發(fā)送郵件 (通知郵件發(fā)送的地址). 這只能用于版本1.2 / 1.2.1 。
在functions.php文件中更改如下代碼:
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
If I turn off comments, it says "Comments Off" on the weblog. so how do I change that?
To turn your comments feature off:
WordPress version 1.2
- Line 58 of wp-includes/template-functions-comment.php has the words 'Comments Off'
WordPress version 1.3
- Line 98 of wp-includes/template-functions-comment.php has the words 'Comments Off'
如果我關(guān)閉評(píng)論,blog上顯示"Comments Off" ,如何才能更改成這樣?
要想把評(píng)論功能關(guān)閉:
WordPress 1.2版本
- wp-includes/template-functions-comment.php 文件的第58行有'Comments Off'
WordPress 1.3版本
- wp-includes/template-functions-comment.php文件的98行有'Comments Off'
How do I change what is shown when I password protect a post?
To create password protected text, see Line 19 of wp-includes/template-functions-post.php for that information.
當(dāng)我使用密碼保護(hù)某文章時(shí),我如何改變顯示內(nèi)容呢?
要?jiǎng)?chuàng)建密碼保護(hù)文本, 查看wp-includes/template-functions-post.php 文件的19行可以找到更多信息。
How can I allow certain HTML tags in my comments?
WordPress versions prior to 1.2
If you would like to override the $allowedtags variable in kses.php you may do so in your my-hacks.php file, provided you add the following code after you set up the $allowedtags array.
define('CUSTOM_TAGS', true);
我如何在評(píng)論中允許特定的HTML標(biāo)簽?
'WordPress 1.2及以前版本
如果你想不考慮kses.php 文件中$allowedtags 的數(shù)量,你可以在my-hacks.php文件中達(dá)到目的, 建立$allowedtags數(shù)組之后,添加如下代碼.
define('CUSTOM_TAGS', true);
How can I add advanced search ability to WordPress?
See:
我如果添加高級(jí)搜索功能到WordPress?
參見:
Posts
Posts
How do I upload an image and display it in a post?
To permit images to be uploaded to your site:
- From the Administration Panel->Options->Miscellaneous
- Select the option to Allow File Uploads
- If you need help with finding the absolute path, visit Absolute Path
- If you need help with changing permissions, visit WordPress:Changing_File_Permissions
- Then check main menu across the top. Click Upload
我如何上傳圖片并讓它在某個(gè)文章中顯示?
要想允許上傳文件到你的站點(diǎn):
- 找到Administration Panel->Options->Miscellaneous操作面板
- 選中 Allow File Uploads
- 如果你需要找到絕對(duì)路徑的幫助,參見絕對(duì)路徑
- 如果你需要更改許可的幫助信息,參見更改文件許可
- 然后檢查頂部的主目錄,點(diǎn)擊 Upload
Refer to the following articles to align the image in the post:
- How to properly aligning the images
- How to create a drop-shadow effect, with alignment
- WordPress Support Forum Article
See:
查閱如下文章,在你的文章中排列圖片::
參見:
What is pingback?
See:
什么是pingback?
參見:
What is trackback?
See:
什么是trackback?
參見:
Where is the permalink to my post?
See:
我的文章的permalink 在哪?
參見:
Can I use desktop blogging software?
See
我可以使用桌面blogging 軟件嗎?
參見:
Can I blog by email?
See
我可以用郵件寫blog嗎?
參見
Spam, Spammers, Comments
What can I do to stop comment spam?
See:
More Information on Comment Spam
See:
What Spam words do I need?
See:
垃圾信息, 發(fā)送垃圾信息的人, 評(píng)論
如何才能阻止評(píng)論垃圾信息?
參見:
有關(guān)評(píng)論垃圾信息的更多信息
參見:
我需要什么樣的垃圾信息詞匯?
參見:
Why are all the comments being moderated?
If you are getting all comments sent to moderation when they should not, it's probably your spam words list in Administration Panel->Options -> Discussion. It probably has either a single character, OR a blank line OR extra whitespace. Take those out.
Right click in the Spam Words box, Select All then Copy and paste it into Notepad to check it.
With spam plugins adding to that list, it's not easy to check for odd data, and it's easy to miss multiple blank lines. This way makes it easier.
Check it carefully :)
為什么所有的評(píng)論必須要審核?
如果你把所有的評(píng)論都發(fā)送審核,而實(shí)際上并不需要的話,很可能你Administration Panel->Options -> Discussion中的垃圾信息詞匯 列表只有一個(gè)字或者一個(gè)空行或者幾個(gè)空格,把他們刪除。
右鍵單擊Spam Words 框,選擇所有,復(fù)制并粘貼到記事本來查看.
添加垃圾信息插件到列表中后, 查看臨時(shí)數(shù)據(jù)變的不那么簡(jiǎn)單了,而且很容易忽略多個(gè)空行。 這樣會(huì)讓審核變的容易些。
仔細(xì)檢查 :)
Importing and Exporting
How do I Import a WordPress WXR file when it says it is too large to import?
If a WordPress WXR file, an xml file exported from WordPress, is too large to import, there are several things you might try to overcome that limit.
- Break the WordPress WXR file into smaller pieces by separating the data between a post and pasting the header into each file.
- Increase the PHP memory limit in php.ini by changing the memory_limit setting (e.g. memory_limit = 64M ;) Note: many hosts don't allow this.
- Increase the PHP memory limit via .htaccess (e.g. php_value memory_limit 64M). Note: many hosts don't allow this.
- Increase the PHP memory limit via wp-config.php (e.g. define('WP_MEMORY_LIMIT', '64MB');)
See:
導(dǎo)入和導(dǎo)出
當(dāng)提示我說文件太大而無法導(dǎo)入的時(shí)候,我如何導(dǎo)入WordPress WXR 文件?
如果從WordPress 導(dǎo)出的WordPress WXR 文件, xml文件, 太大而無法導(dǎo)入, 有幾種方法你可以嘗試下以克服這個(gè)限制.
- 通過在一個(gè)文章中把數(shù)據(jù)分開成幾個(gè)小文件,把頭部信息放導(dǎo)每個(gè)文件中,這樣把 WordPress WXR 文件拆分成幾個(gè)小的部分.
- 在php.ini文件中,通過更改內(nèi)存限制設(shè)置把PHP 內(nèi)存限制提高, (e.g. memory_limit = 64M ;) 注意: 很多主機(jī)不允許這樣.
- 通過 .htaccess文件提高PHP內(nèi)存限制 (e.g. php_value memory_limit 64M). 注意: 很多主機(jī)不允許這樣.
- 通過 wp-config.php文件提高PHP內(nèi)存限制(e.g. define('WP_MEMORY_LIMIT', '64MB');)
參見: