新建编辑未设置cookie时,我希望显示more标记之前的\\u内容,设置cookie时,显示more标记之后的\\u内容。
我无法回答自己的问题,因为我的声誉不到10,所以我将改为编辑。
这是最后的答案。如果未设置cookie,这将显示more标记之前的\\u内容,一旦设置cookie,将显示more标记之后的\\u内容。在创建Lead Gen登录页时,或在执行某个操作之前或之后要显示某些内容时,非常有用。
谢谢
<?php global $more;
while (have_posts()) : the_post();
if(isset($_COOKIE[\'CookieName\'])) {
$more = 1;
the_content(\'\',TRUE,\'\'); }
else {
$more = 0;
the_content(); } ?>