向页面概述(edit.php)中添加一些基本HTML的最佳方法是什么?基本上,我想添加一些文本,比如一个元框,向我的多站点用户解释页面系统的一些事情。
由于OleVik提供的解决方案,找到了答案。以下是有关该主题的更多资源:
How to show an urgent message in the WordPress admin areaPlugin API/Action Reference/admin notices
向页面概述(edit.php)中添加一些基本HTML的最佳方法是什么?基本上,我想添加一些文本,比如一个元框,向我的多站点用户解释页面系统的一些事情。
由于OleVik提供的解决方案,找到了答案。以下是有关该主题的更多资源:
How to show an urgent message in the WordPress admin areaPlugin API/Action Reference/admin notices
我使用以下内容的一个版本,将文本添加到页面顶部(edit.php?post_type=page):
// Show message when viewing pages
function page_AdminMessage()
{
showMessage("You are now viewing the Pages", false);
}
if ($_GET[\'post_type\'] == \'page\') {
add_action(\'admin_notices\', \'page_AdminMessage\');
}
只需要添加到functions.php.有人用过Google Analytics for Dashboard 插件?我已经成功安装了它,但每当我尝试使用开始登录过程按钮将其链接到我的Google帐户时,我总是收到一条奇怪的消息,如下所示:Timestamp is too far from current time: <a Unix timestamp here> 我正在使用WordPress 3.1.3。知道这里发生了什么吗?谢谢,我