wordpress tutorial, How to add custom text in every wordpress post. There is always common content we want put in every post. using following function we can add the custom text in every wordpress post.
How to add custom text in every wordpress post
just open your functions.php file from wordpress theme folder and put the following code in that file.
function mytext($content) { return "The addtional content goes here: ".$content; } add_filter('the_content', 'mytext');
Please where exactly in the function.php is the code placed: Below the ?> or above it?
before the closing tag.