How to Limit Search Results
Is there a way to limit search results to only logged in user's ads? I want my members to be able to locate their ads quickly by putting a search field in their dashboard page. I have the search field and the results show up, but if they search for terms used in ads other than their own, they show up as well. How can I prevent them from seeing other members ads from display in search results?
<?php query_posts( array('posts_per_page' => 10, 'post_type' => APP_POST_TYPE, 'post_status' => 'publish', 'author' => $curauth->ID) ); ?>
In the loop, but still other member's ads are displayed too even though I'm logged in as a non-admin member. Any suggestions would be very much appreciated.