- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I’m creating a wordpress theme.
Every time I add <!–more–> in the back-end posts section of wordpress it creates something that says "Continue reading ".
However there is always a <p></a></p> right below it. I can’t find what the problem is.
Html
Continue reading »
Posted in Uncategorized | Edit | Comment;
Php
‘); ?>
‘); ?> Posted in |
Any help would be appreciated.
very weird…
its normal. <p></a><p> is an error to HTML validation because of the </a>. you’re basically asking any HTML processor to process an ending part of a hyperlink to an unknown location inside a paragraph of nothing.
There are two easy ways to fix this. either remove </a> or change it to ‘<a href=”url”>label</a>’ but replace url with an actual url to a webpage and label will be the text that will appear as a hyperlink.
By default WP output is:
We can see the first < p > tag don’t have the end tag.
If your theme have the loop.php file take a look on this code:
'.__('Continue reading »').'');
and changes it to:
and it will output this: