• Before the most recent update my installation of this plugin managed to live search custom post types as well. Since performing the update however the live search only finds regular posts and pages.

    What happened?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dana Ross

    (@csixty4)

    Well, this is quite a pickle. I got a bug report a while back complaining it didn’t search pages because somewhere around WordPress 2.8 query_posts() was changed to search only posts by default. So in the last release, I passed an additional parameter that said to give me posts AND pages. Looks like it’s skipping custom post types now (are they not “posts” in this context?). Bleh. Back to the drawing board.

    ouch.. well I love your plugin so keep up the good work ??

    I’m also tying to use your plugin with a site that uses custom posts… is there a quick and dirty hack that I could do to get it to work (I’ll try installing the older version)?

    Thread Starter Carl

    (@carlthome)

    I’ve done a rollback to 1.16. That “fixed” the issue. Weird.

    Plugin Author Dana Ross

    (@csixty4)

    In daves-wordpress-live-search-ajax.php, line 125, change

    'post_type' => array('post', 'page'),

    to

    'post_type' => 'any',

    That should open it up to searching posts, pages, and custom post types as well.

    Thread Starter Carl

    (@carlthome)

    Great. Thanks Dave!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Dave's WordPress Live Search] No longer searches custom post types since update?’ is closed to new replies.