I am modifying the content using the "the_content" filter. But this filtering is seen in the excerpts also.
Consider the following code,
function modify_content($content = ''){
return 'HELLO ALL' . $content;
}
add_filter('the_content', 'modify_content');
This works in the main content perfectly.
But,
if you see in the excerpt, the "HELLO ALL" text is printed, which is unwanted.
How to avoid or remove the text in the excerpt ??? which is to be added only to the main content ?? I tried changing the priority but it is no use..
Thank you.