Appending a symbol at the end of the Post?
-
I know just enough to be dangerous and not enough to solve my own problems. (I have a design background, not a programming background.)
Anyway, I would like to append the Ω symbol to the end of my posts. In HTML, this is represented as
Ω
.In order to append to the post, we opened the “template-functions-post.php” file and inserted the following line:
$content .= '&Omega';
into this section of the document:
function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content .= '&Omega';
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
}Doing so indeed appends the end of the post entry, *but* instead of displaying the Ω symbol, it displays
Ω
.How can I make sure that the Ω symbol displays properly right after the last word in my post? (No line breaks of returns.)
Thanks!
- The topic ‘Appending a symbol at the end of the Post?’ is closed to new replies.