Title: Postie Replace
Last modified: March 17, 2023

---

# Postie Replace

 *  Resolved [321abc](https://wordpress.org/support/users/deraxia/)
 * (@deraxia)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/postie-replace/)
 * I’m using Postie with text extractor and shortcodes addon, and the preplace shortcode
   doesn’t work with text extractor. If I use the preplace shortcode when attaching
   a document, the preplace shortcode is ignored. A new post gets created. I hope
   you can help.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/postie-replace/#post-16578936)
 * I played around with trying to make this work, but there is a chicken and egg
   thing going on. If the text extractor runs first then the shortcode is replaced
   with the attachment text and so isn’t there (the current behaviour).
 * If the text extractor runs second, then the new attachment is discarded and the
   original attachment is re-read.
 * I tried adding the shortcode to the document which might work depending on how
   the document is encoded. I had trouble with the PDF version adding spaces such
   that the shortcode didn’t work.

Viewing 1 replies (of 1 total)

The topic ‘Postie Replace’ is closed to new replies.

 * ![](https://ps.w.org/postie/assets/icon-256x256.png?rev=970083)
 * [Postie](https://wordpress.org/plugins/postie/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postie/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postie/)
 * [Active Topics](https://wordpress.org/support/plugin/postie/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postie/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postie/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/postie-replace/#post-16578936)
 * Status: resolved