【发布时间】:2015-08-29 20:53:08
【问题描述】:
我正在尝试将此代码添加到我的主题的 function.php 中
function custom_add_author() {
$author = get_the_author();
echo $author;
}
add_action( '???', 'custom_add_author' );
我想将此功能代码添加到名为的特定php中 “作者列表.php”
如何使用正确的代码添加它? 是吗?
add_action( 'author-listing.php', 'custom_add_author' );
【问题讨论】: