Home Forums General Issues String Replace in Content Output Field Reply To: String Replace in Content Output Field

  • HI, John
    thanks for reply.

    Basically, I need to replace all the paragraph tags with
    apxh:p (opening and closing tags)

    and also replace all the anchor link tags
    with similar custom XHTML ATOM coding.

    So need to do string replace of a 400 word text block for news items, which is in a ACF custom field which we insert same time as doing a ‘dirty’ version of the news in the normal content field (we don’t use Gutenberg).

    Trying to output a custom RSS/atom feed, and in the template call the field, but do string replace on the output as we can’t have [CDATA for the feed, and needs the custom coding on the paragraph and anchor links.

    Hope that made sense.