Results 1 to 4 of 4

Thread: How to Limit Search Results

  1. #1
    Thread Starter
    Senior Member kristopherk's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    101
    Thanks
    3
    Thanked 5 Times in 4 Posts

    Lightbulb 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?

    I've tried...

    Code:
    <?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.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    39,686
    Thanks
    163
    Thanked 3,296 Times in 3,167 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    Senior Member kristopherk's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    101
    Thanks
    3
    Thanked 5 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    timchr's Avatar
    Join Date
    Mar 2012
    Location
    Sweden
    Posts
    11
    Thanks
    5
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [MOD NEEDED] Refine Results show in Search Results
    By danilocarneiro in forum ClassiPress General Discussion
    Replies: 6
    Last Post: April 30th, 2014, 08:40 AM
  2. Sponsored Search Results JR 1.4
    By jobboarder in forum Report JobRoller Bugs
    Replies: 5
    Last Post: February 18th, 2012, 01:26 AM
  3. Search results problem
    By jamaxfer in forum JobRoller General Discussion
    Replies: 1
    Last Post: March 25th, 2011, 01:05 AM
  4. search results problem
    By lausha in forum Report ClassiPress Bugs
    Replies: 16
    Last Post: March 16th, 2011, 12:46 PM
  5. Highlight search terms in search results
    By lausha in forum ClassiPress General Discussion
    Replies: 1
    Last Post: January 26th, 2011, 06:11 AM