Posted by Richard
The WordPress post editor, both at WordPress.com and in the self-hosted software from WordPress.org has a “more tag” function in the editor. When the “more tag” is inserted into a post and the post is published, there will appear a “read more” or “continue reading” link where the more tag was inserted which splits the post. Clicking on the “read more” will take the reader to the permalink post page, and allow them to read the rest of the post. It is particularly useful on long posts.
Keeping several simple things in mind can go a long way toward avoiding the “more tag” woes.
- Always put the more tag on a separate line, not within a paragraph or at the end of one (before hitting return/enter). If a more tag is placed within a paragraph, the ending paragraph tag effectively ends up on the full-post page (permalink post page) which means that on the main page, that ending tag will be missing as far as the browser is concerned, which will cause the rest of the posts to go wacky.
- Never put the more tag within a blockquote, or an ordered or unordered list. Just as placing a more tag within a paragraph will cause problems, placing it within a blockquote, ordered or unordered list will cause the same problems for the same reasons.
- Never apply formatting to a more tag (italic, bold, center, etc.). Again, the ending formatting tag will, as far as the browser is concerned, be on the full-post page and the formatting in the previous posts will go all strange.
- If the more tag is going within a section of text that has special formatting (italic, bold, center, etc.) end the formatting before the more tag and then start it again after the more tag. Again, failure to end the formatting prior to the more tag will cause the same issues as outlined in 1 and 2 above.
- It might be a good idea to go to settings > writing in your dashboard and select “WordPress should correct invalidly nested XHTML automatically” and then click “save changes at the bottom of the page. This will not automatically fix all more tag issues, but it could very well fix a few here and there when you have a lapse of memory.
Related posts found on this blog:
Using the read more tag in a WordPress blog