I would like to add some text or image at the start of each post (in a given post layout).
I have found numerous ways to implement this before the content starts ie atop the content (of course, I could just do this by adding the text above <?php the_content(); ?>
).
But I want to insert it really at the start of the content--on the same line, like:
HERE IS SOME CUSTOM TEXT and here starts the content entered for the post.
Any ideas, Community?
the_content();
. For example if you check the HTML source of your page the relevant HTML might be like:<article><h1>Hello World</h1><div class="entry"><p>This is my first post</p></div></article>
but your desired output might be:<article><h1>Hello World</h1><div class="entry"><p>HERE IS SOME CUSTOM TEXT This is my first post</p></div></article>
. This kind of information will help. Please update your question with any extra information, thanks.<p>
tag, that's preventing you from adding the extra words above the line containing<?php the_content();?>
?