If I am guessing it right, it would be a 2 step process.
-
Store the post title and post id in an assosiative array while publishing the posts (
save_post_POST_TYPE
hook). For ex:array('Post Title' => 101)
where101
being the id of the post. I’d use WordPress Options table to store them and quickly retrieve when needed. -
Now, you can hyperlink (
str_replace
) them on the fly usingthe_content
filter or even better save them as hyperlinked when saving the posts.