Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




RS + SupportPress Theme : problem with ajax search

UserPost

8:34 am
August 28, 2011


ReNudo

New Member

posts 1

1

Hi, first of all compliments for your great pluigin. Powerful and hig customizable.

I'm using SupportPress theme (www.woothemes.com), a theme that transforms my site into a support system for my users.

It works great with RS, and now I can give different help and support to different kind of users.

The only problem is with an ajax search that sends the search term and then does a get_posts query to get the matching knowledgebase articles. With "normal" search, I see that RS take care of the rules I've defined and so the right users see the right results. This not happens with this ajax search.

This is the code for the ajax search:

$args = array( 'post_type' => 'knowledgebase', 'post_status' => 'publish', 'posts_per_page' => 10, 's' => $search );

$results = get_posts( $args );

Is there any way to integrate your plugin in this particoular search?

Greetings

4:15 pm
October 4, 2011


Kevin

Admin

posts 2503

2

The get_posts() function will not apply query filters (for Role Scoper or any other plugin) unless you pass an additional argument:

'suppress_filters' => false

About the Agapetry forum

Currently Online:

16 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1249

Posts: 5659

Members:

There are 1261 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin