Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter robanna

    (@robanna)

    Ah, Just saw this:

    Known bugs

    WordPress creates excerpts by simply stripping tags from truncated content. This results in some Javascript-protecting comments appearing in the excerpt text, as I haven’t found a convenient way to determine if content being rendered is meant for an excerpt or the page. For now, a customizable message appears; by default, it will be rendered as /* email hidden; JavaScript is required */. Any ideas for workarounds would be appreciated; please send them along.

    from https://www.weaselhat.com/phpenkoder/

    That might need to go in the readme.txt or in the FAQs on here.

    Plugin Author michael_greenberg

    (@michael_greenberg)

    Ah, sorry for the trouble—I just updated the FAQ.

    The real problem here is definitely WordPress’s architecture. It’s probably possible to kludge something in here—insert a marker into the excerpt, wait for WordPress to strip the tags, then replace the marker with the email you care about—but it sounds bug-prone.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working in the_excerpt’ is closed to new replies.