I'm looking for advice about the following problem, to which I've found an incomplete solution:
Problem: When importing text into my self-hosted PressBooks instance, I am tired of manually converting all URLs into clickable links.
Partial solution: I read about the WP make_clickable function:
I inserted the two recommended functions into the functions.php file of my preferred theme (PressBooks TextBook by Brad Payne at BCcampus). See my modified branch at
Like magic, the URLs in my main text now render as clickable links in the PressBooks web edition, as well as the exports. Furthermore, the function is designed to avoid screwing up links inside shortcodes, such as my iframes.
But that's my new problem, because the function does NOT convert URLs into clickable links if they are located inside my PressBooks footnote shortcodes. As you recall, footnotes in PressBooks look like this:
Questions:
Does anyone have a general solution to the manual conversion of URLs into clickable link issue?
Or if you like this partial solution with the make_clickable function, can anyone suggest how to recode it to work inside PressBooks footnote shortcodes, but NOT other shortcodes?
thanks
Jack