开发者 |
studiohyperset
oqm4 ryanajarrett |
---|---|
更新时间 | 2020年4月4日 03:24 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 5.4 |
wp_list_pages
-generated page lists.
showauthors=1
to display an author name beside each permalinked page title the wp_list_pages
function generates: e.g., <?php wp_list_pages( 'title_li=&showauthors=1' ); ?>
. To disable the parameter for a particular string/list, set showauthors
to "0": e.g., <?php wp_list_pages( 'title_li=&showauthors=0' ); ?>
.This plugin assumes (a) most developers want to drive traffic to site pages, vs. author pages, and (b) links to author pages will appear on these site pages. As such, the names the plugin generates appear unpermalinked.
Additionally, even with the plugin installed and the showauthors=1
parameter enabled,all lists will be organized per pages rather than per authors. Alphabetically ordering a list by ascending post_title
(that is, sort_order=ASC&sort_column=post_title
) -- the default method -- will result in a list like the following, regardless of author name: