add_filter(‘the_content’, ‘my_function’) alters textblocks
-
Hello!
I need to add the same content to the end of each post. So I try to use custom function in functions.php similar to this:
function the_end( $text ){ return $text . ' The end!'; } add_filter('the_content', 'the_end');
But text appears not only at the end of each post, but also inside the post after each textblock inserted with a shortcut.
How to solve this?
Thanks in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘add_filter(‘the_content’, ‘my_function’) alters textblocks’ is closed to new replies.