更新时间:2023-12-01 22:32:58
您收到错误,因为WordPress中没有 child_of()
函数。
You're getting an error because there is no such thing as a child_of()
function in WordPress.
child_of()
是一种使用get_pages()函数进行搜索的方式。
child_of()
is a way of searching using the get_pages() function.
$pages = get_pages('child_of=##');
其中##是关于我们页面的数字ID(不是名称)。
where ## is the numeric ID (not the name) of the 'About us' page.