What I'm trying to achieve is a simple text-replace functions, that would be available to any site in my Wordpress Network. Basically I want to:
Change
[--]
into—
(—),Be able to link to my own posts using only their titles --
[internallink post=title]
or anything similar.
I found simple example of solving this using shortcodes. But I don't know, where to put my custom shortcodes definition, so it would be available to any site in my Wordpress Network.
I'm always looking into solutions as simple as possible, so I would like to know, if I have to use shortcodes to solve these two tasks or:
Is there an easy way to define global search & replace mechanism, so any occurence of just
--
would be changed to—
in any post or page on any site in the network?Is there anyway to define global shortcode function, that would convert any
[post title]
into link poiting to post titled "Post Title"?
Thank you in advance for any help here?
wptexturize