【发布时间】:2014-11-20 02:54:34
【问题描述】:
我有一个 Wordpress 应用程序,它根据页面显示标题:
<?php
if (is_404()) {
echo "404. Page not found.";
} elseif (is_page('46')) {
echo "NOT WORKING";
} elseif (the_subtitle("","", false) == "") {
the_title();
} else {
the_subtitle();
}
?>
基本上,在特定页面(第 46 页,我已通过打印页面 id 确认)上,我想显示特定标题。但是由于某种原因,当我访问第 46 页时,我得到的是页面的标题,而不是“不工作”?
【问题讨论】: