If you know the answer to this question below, please apply and list ONLY your AJAX Filter work.
I'm using this code to have AJAX filtering [login to view URL]
But I need help to integrate it into my site.
As you see, the ECHOed loop of the WP_QUERY is inside the misha_filter_function(), and so it will get echoed directly below the HTML part of the filter itself.
Basically I need to move this echo to somewhere else.
I need to REPLACE my main theme's post loop instead with this echo loop.
I tried using global variables but it didn't work as I thought.