我使用本教程创建了自己的自定义post类型:http://thinkvitamin.com/code/create-your-first-wordpress-custom-post-type/
一切都很好,但是我对“阅读更多”的功能有很大的问题。
众所周知,<!--more-->在隐藏的更多段落的开头添加了<span id="more-[number]" />。在我的例子中,这个跨度破坏了整个标记。
你自己看看:
<p>This is normal paragraph and should be visible everywhere.
我正在开发一个WordPress插件,不能有条件地添加基于条件标记的过滤器。
这是我的密码:
add_Action('init', 'determine_location');
function determine_location() {
$d = get_option('display_locations'); //this is a checkbox field in the plugins settings with 7 options
if (isset($d)) {
if ($d[0] == 'hom