kylereicks / typeahead.js.wp

A plugin to take advantage of typeahead.js in Wordpress search.
11 stars 5 forks source link

Links in dropdown menus #4

Open djevrek opened 11 years ago

djevrek commented 11 years ago

Is it possible to link those results from dropdown menu to articles ?

kylereicks commented 11 years ago

Good question. Using templates is possible with typeahead.js, but it isn't something that I have included with the plugin so far.

For a custom job, you can always hack into typeahead-activation.js and add a template linking to your articles. The "Open Source Projects by Twitter" example is very similar to this.

Now that I'm thinking about it again, it may be something that is well suited to a filter hook. I will certainly keep this in mind when I work on adding actions and filters to this project.

Thanks for your input.