Without manually changing the content and without relying on .htaccess redirects (or the Redirection plugin), I’m trying to write a script that finds and alters specific URLs within the content of pages or posts.
The hurdle I’m facing is that I want this to work with shortcodes and the like — for example I’d like it to work with Dagon Design’s sitemap generator.
So it needs to filter URLs generated by those shortcodes before the content is rendered to the browser. Odd problem to create for myself and try to solve, I know.
- The topic ‘PHP to Filter URLs Within Content’ is closed to new replies.