Wordpress Custom Post Type "Read More" problem
I've created a custom post type made with this tutorial. The problem is when I try to display a part of the post it works exact the opposite way!
Post text:
You should see me!
<!--more-->
Not me. At least not yet.
PHP code:
<?php the_content("Read more...",TRUE,''); ?>
Should display 开发者_运维技巧something like:
"You should see me!
Read more..."
But it displays:
"Not me. AT least not yet."
And no "Read more..." link.
What's going on?
I was also having same problem. After a detailed observation I found that read more tag doesn't work on template tags. See here
https://developer.wordpress.org/reference/functions/the_content/
The quicktag will not operate and is ignored in Templates where just one post is displayed, such as single.php.
精彩评论