How can I use the tag in a template/custom page?
-
I am building a custom theme where I am editng the category.php file and customizing it to have specific content. I want to use the <!–more–> tag directly in the category.php so it can reveal/hide content. Because the <!–more–> tag is only recognized in the wordpress editor, is there some code i can use to call up the same function in a custom page?
I don’t mean to ask how to make the plug-in work for pages where you add the following line of code.
<?php global $more; $more = 0; the_content(‘Read More’); ?>
I already have this working.
Instead, I want to use the <!–more–> tag like how you would use it in the wordpress editor, but used in a theme template.
Thanks so much for the help.
- The topic ‘How can I use the tag in a template/custom page?’ is closed to new replies.