Calling the_excerpt from inside a plugin template file
You are doing few things wrong: the_excerpt does not uses post id. When you modify global $post you should always set it back to its original value. you were assigning get_post’s return value to $p which was not used in your code. I have made few fixes in your code. The below code is just … Read more