Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there anyway to load the search results into a div in wordpress? I am currently searching a custom post type only and am searching from a small box that pops up in a fancybox. is there anyway to just have the search results load into that same box? iframe maybe?

share|improve this question
    
would I just modify my custom search-xx.php template or could I use jQuery .submit() .. ?? –  user4602 Apr 12 '11 at 0:30
    
@jeffery I think both of thouse are options. It also depends on the fancybox if it allows iframes you may just be able to "refresh" the fancybox content with the results. –  BandonRandon Apr 12 '11 at 1:25
add comment

1 Answer

If your form is already loaded inside fancybox you can updated it using ajax and simply assign the results to that fancybox instance $.fancybox(ajaxdata);

To get a better understanding take a look at example 5 at this page

Hope this helps.

share|improve this answer
add comment

Your Answer

 
discard

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