Title: [Plugin: WP Ajax Query] Strange behaviour when admin
Last modified: August 19, 2016

---

# [Plugin: WP Ajax Query] Strange behaviour when admin

 *  [Sebastian Echeverry](https://wordpress.org/support/users/sebaxtian/)
 * (@sebaxtian)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-ajax-query-strange-behaviour-when-admin/)
 * I’m using your plugin to populate a ‘carousel’ script. When the user is no-admin,
   the query goes OK, but when the user is an administrator the query always return
   the category query. I think it is because line 30 asks if the user is an administrator,
   and then any query made as administrator would be treat as a category query.
 * Is this a bug or is there a reason for this?
 * Thanks in advance for your help, and keep the good work.
 * [http://wordpress.org/extend/plugins/wp-ajax-query/](http://wordpress.org/extend/plugins/wp-ajax-query/)

The topic ‘[Plugin: WP Ajax Query] Strange behaviour when admin’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-ajax-query.svg)
 * [WP Ajax Query](https://wordpress.org/plugins/wp-ajax-query/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ajax-query/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ajax-query/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ajax-query/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ajax-query/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Sebastian Echeverry](https://wordpress.org/support/users/sebaxtian/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-ajax-query-strange-behaviour-when-admin/)
 * Status: not resolved