WordPress:FAQ Advanced Topics

来自站长百科
Fludlen讨论 | 贡献2008年3月31日 (一) 15:54的版本
跳转至: 导航、​ 搜索

Back to FAQ 返回到常见问题解答




This article lists common questions for advanced WordPress users, and refers you to articles that contain the answers. There is also a list of resources at Wordpress:Advanced Topics, which might be of help, and a list of resources specifically for Plugin, Theme, and Core WordPress developers at Wordpress:Developer Documentation.

这篇文章为高级的WordPress用户列出了常见的问题,并且指点你到含有这些答案的文章中去。在高级主题中也有一个资源列表,可能会有所帮助,在程序员文件中有特别是关于插件,主题和核心WordfPress程序员的资源列表。


Changing the Display of WordPress

改变WordPress 的显示

Can I alphabetize my posts on the front page or in categories?

See Wordpress:Alphabetizing Posts.

我能在首页或者在类别中将我的文章以字母表顺序排列吗?

看看将文章以字母表顺序排列.


Can I have a blog in a language other than English?

See Wordpress:WordPress in Your Language.

我能将博客设置成除了英语以外的其它语言吗?

看看你的语言的WordPress.


Alternate Uses of WordPress

改变WordPress用户

Can WordPress power multiple blogs?

See Wordpress:Installing Multiple Blogs.


WordPress能够给多个博客供以动力吗?

看看 安装多个博客.


Can I use Wordpress as a Content Management System?

See Wordpress as CMS

我能将Wordpress用作一个内容管理系统吗?

看看Wordpress 作为CMS


Can WordPress power group/collective blogs?

WordPress能够群体的/集体的博客供以动力吗?

Many users can register and participate on a WordPress blog. You can even assign them different privileges ("User Levels"), so there can be "administrators" and simple "contributors". For more information see Wordpress:User Levels.

许多用户能够在一个WordPress博客上注册并且参与进去。你设置可以给他们分配不同的特权("用户 级别"),因此就会有"管理者" 和简单的 "投稿者"。更多的信息请看用户级别

Miscellaneous Advanced Topics

混杂的高级主题

Will my WordPress blog show up in search engines?

我的WordPress 博客会在搜索引擎中出现吗?

See Wordpress:Search Engine Optimization for Wordpress. 看看WordPress搜索引擎最优化.


How do you get cruft free URIs for search results?

你怎样使搜索结果得到cruft 免费 URIs?

To return clean URIs for search results in WordPress from the search form (www.example.com/search/searchterms instead of www.example.com/?s=searchterms)

从(www.example.com/search/searchterms搜索形式而不是www.example.com/?s=searchterms)中为WordPress搜索结果返还cleanURIs.


First create a file called search.php which contains: 首先创建一个称为search.php的文件,文件中含有:

<?php header('Location: http://www.example.com/search/' . $_GET['s']); ?>


<?php header('Location: http://www.example.com/search/' . $_GET['s']); ?>

Put that file in the root of your WordPress install and alter the action for the search form to this:

将文件放到你的WordPress安装的根目录上并且将搜索形式改为:

action="<?php bloginfo('url'); ?>/search.php"


action="<?php bloginfo('url'); ?>/search.php"


See also: 也看看:


Can I get my profile information as an FOAF file?

在一个 FOAF文件中我能得到我的基本资料信息吗?

See Binary Relations’ FOAF output from WordPress

看看Binary Relations’ FOAF output from WordPress


How do I get .phps files to show up in colored text on my server?

我怎样使.phps 文件出现在我的服务器上的带有色彩的文章上?

If you want to have your server display .phps files in color like this updatelinkroll.phps at carthik.net, add the following line to your .htaccess file in the server root directory. This assumes your server is Apache and that you have the ability to add types in .htaccess

AddType application/x-httpd-php-source .phps

如果你想你的服务器将.phps文件显示颜色,像这个updatelinkroll.phps at carthik.net,为你的服务器根目录上的.htaccess文件添加以下这行。假定你的服务器是Apache而且你有能力在.htaccess 上添加类型。 AddType application/x-httpd-php-source .phps


How can I do a bulk edit of the Status field for all the posts in my database?

我怎样为我的数据库中的所有文章的地位区中做大部分的编辑?

Use the following SQL commands to change the post_status for every post in your wp_posts database table. This command will do the bulk change and exclude Pages from being changed--remember to replace STATUS with draft, private, or publish.


使用以下的SQL命令行,为数据库表中你的wp_文章中的每篇文章,改变post_status。这个命令会做大部分的改变,从改变的—记忆中清除页面,以将STARUS取代为草稿, 私人的, 或者共享的.

UPDATE wp_posts  SET post_status = 'STATUS' WHERE post_status != 'static';

UPDATE wp_posts SET post_status = 'STATUS' WHERE post_status != 'static';


If you have multiple authors and only want to do a bulk edit of just one author's post, you can use the following command, but remember to replace NUMBER with the correct ID number of the post_author.

如果你有多个作者,你只想大量地编辑一个作者的文章,你可以使用以下的命令行,但要记住将数字换成文章_作者的正确的ID数字。


 UPDATE wp_posts SET post_status='STATUS' WHERE post_author='NUMBER';


更新 wp_文章 设置文章_地位='STATUS' WHERE post_author='NUMBER';


See also: 也看看:



How to create a link in my header that links to a URL

怎样在我的标题上创建一个链接链接到一个URL

This solution assumes creating a Page causes a link to be put in your header.

这个解决办法假定创建一个网页引起一个可以放到你的标题上的链接。

Install and activate the plugin called Redirectifiy. Create a Page called Wiki and save that Page. Then do Manage->Pages and edit that Page and add the Custom Field with a 'key' of redirect and URL to your Wiki in the value. (That last edit of page is necessary to overcome a bug where you can't assign Custom Fields to a new page, but you can do it when you edit the page.)

安装和激活 插件称作Redirectifiy.创建一个称作Wiki的网页并将网页保存。然后做Manage->Pages并且编辑那个页面,并且在你的客户区添加一个改变方向的'key' ,在数值上将URL添加到你的Wiki上。(当你不能将客户区上交到一个新的页面时,页面的最后编辑有必要战胜一个程序错误,但是在你编辑页面时,你也可以这样做。

How Wordpress Processes Entry Text

Wordpress 怎样处理 Entry Text


Back to FAQ 返回到常见问题解答