• I have written a plugin that replaces the first letter of a post with an image of a decorated capital letter. So far, response has been positive, and I’m pleased with it.

    There is one small issue, though, that I can’t seem to find documentation to resolve. I want to skip the replacement if the excerpt is being displayed instead of the full text. This is, obviously, because after my plugin puts in the image code, the_excerpt promptly strips the image out, leaving the first word minus a letter.

    How can I detect within the plugin whether the text being sent to it is a full post or just an excerpt?

  • The topic ‘Determining within plugin if the_excerpt is called’ is closed to new replies.