WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When adding a link in the TinyMCE editor, you get a nice search with ajax function that searches your existing content and lets you select from it.

Is it possible/reasonable to re-use this in a plugin? If so, how would I go about doing it?

(I'm working on a Related Posts functionality, and while I can easily list ALL posts in the list, it seems it would get out of hand quickly without the ability to search/filter.)

share|improve this question
As everything connected to TinyMCE I'd vote against doing that. Aside from that, you've got jQuery UI Autocomplete on board. Also please ensure that the question has a specific task. Currently it's "yes/no, because [opinion]". – kaiser Sep 22 '12 at 17:38
Thanks for your thoughts. I don't understand your "also." Is this criticism of how I phrased my question? – MadtownLems Oct 2 '12 at 20:31
No, it's no criticism. I'm just trying to help to ask your question in a way that you get the most and best answers possible. Therefore I'm pushing a little to show code and make it more specific. "Is it reasonable" can easily answered with "yes/no", but this won't help you far and also would be a close reason (opinion). – kaiser Oct 2 '12 at 20:47
"you don't explicitly mention where you'd use this" // I was considering using it for a Related Posts plugin – MadtownLems Jul 2 '13 at 20:11
@MadtownLems, did you work out how to do this? – br3nt Jul 17 '14 at 11:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.