bearded-avenger / wp-live-search

A live search plugin for WordPress that utilizes REST API + Backbone + Underscore
http://nickhaskins.com/wp-live-search/
GNU General Public License v2.0
101 stars 13 forks source link

PHP snippet and custom meta keys #6

Closed Marcoevich closed 9 years ago

Marcoevich commented 9 years ago

Hey Nick :)

I have a few ideas/questions for your plugin:

Cheers!

Rick

bearded-avenger commented 9 years ago

Yep check out this template function, it's essentially a wrapper for do_shortcode. https://github.com/bearded-avenger/wp-live-search/blob/master/public/includes/template-function.php#L10

Right now the REST API doesn't allow searching through post meta keys, as those are considered private. We'd have to surface them, which would surface ALL private meta keys. For the time being we're sticking to native WordPress search.

Marcoevich commented 9 years ago

Allright that looks good :) Thanks nick!

bearded-avenger commented 9 years ago

no problem! happy to help :)