Forums

Determining within plugin if the_excerpt is called (1 post)

  1. pianosteve
    Member
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic