Title: WP Ajax Query
Author: aizatto
Published: <strong>27.05.2010</strong>
Last modified: 27.05.2010

---

Шукати плагіни

Цей плагін **не перевірявся з останніми 3-ма основними випусками WordPress**. Можливо,
він більше не може розроблятися або підтримуватися, і він може мати проблеми сумісності
при використанні з більш новими версіями WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-ajax-query.svg)

# WP Ajax Query

 Від автора [aizatto](https://profiles.wordpress.org/aizatto/)

[Завантажити](https://downloads.wordpress.org/plugin/wp-ajax-query.0.1.zip)

 * [Деталі](https://uk.wordpress.org/plugins/wp-ajax-query/#description)
 * [Відгуки](https://uk.wordpress.org/plugins/wp-ajax-query/#reviews)
 *  [Встановлення](https://uk.wordpress.org/plugins/wp-ajax-query/#installation)
 * [Розробка](https://uk.wordpress.org/plugins/wp-ajax-query/#developers)

 [Підтримка](https://wordpress.org/support/plugin/wp-ajax-query/)

## Опис

WP Ajax Query allows you to query your WordPress database using the same query paramaters
you would use for WP_Query, and return a JSON respresentation of the query results.
This allows developers to easily interface with WordPress without having to relearn
a new API.

### How It Works

The Ajax Query interface would be available at http://example.com/wp-admin/admin-
ajax.php?action=query

A sample jQuery request would be like:
 $.get(ajaxurl, { action: ‘query’ }, function(){},‘
json’);

Querying for a post:
 $.get(ajaxurl, { action: ‘query’, p: 1 }, function () { },‘
json’);

JSON results:
 { “id”: 1, “type”: ‘post’, “title”: “Hello World”, “permalink”: “
http:\/\/example.com\/?p=1” }

Query a category:
 $.get(ajaxurl, { action: ‘query’, cat: 1 }, function () { }, ‘
json’);

JSON results:
 { “id”: 1 “type”: “category”, “permalink”: “http:\/\/example.com\/?
cat=1”, “terms”: [], “posts”: [] }

    ```
    terms and `posts` represents an array of either terms that are sub categories of the category, or posts belonging to the category.<h3>Why I Created It</h3>
    ```

Needed a common way to query the database for posts and taxonomies across multiple
plugins, and didn’t find a suitable replacement.

## Встановлення

 1. Upload the `wp-ajax-query` folder into your plugin directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Відгуки

Для цього плагіна немає відгуків.

## Учасники та розробники

“WP Ajax Query” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій
вклад наступні учасники:

Учасники

 *   [ aizatto ](https://profiles.wordpress.org/aizatto/)

[Перекладіть “WP Ajax Query” на вашу мову.](https://translate.wordpress.org/projects/wp-plugins/wp-ajax-query)

### Цікавитесь розробкою?

[Перегляньте код](https://plugins.trac.wordpress.org/browser/wp-ajax-query/), перегляньте
[сховище SVN](https://plugins.svn.wordpress.org/wp-ajax-query/) або підпишіться 
на [журнал розробки](https://plugins.trac.wordpress.org/log/wp-ajax-query/) за допомогою
[RSS](https://plugins.trac.wordpress.org/log/wp-ajax-query/?limit=100&mode=stop_on_copy&format=rss).

## Мета

 *  Версія **0.1**
 *  Останнє оновлення **16 років тому**
 *  Активних встановлень **10+**
 *  Версія WordPress ** 3 або вище **
 *  Tested up to **3**
 *  Мова
 * [English (US)](https://wordpress.org/plugins/wp-ajax-query/)
 * Позначки
 * [ajax](https://uk.wordpress.org/plugins/tags/ajax/)[JSON](https://uk.wordpress.org/plugins/tags/json/)
   [query](https://uk.wordpress.org/plugins/tags/query/)[wp_query](https://uk.wordpress.org/plugins/tags/wp_query/)
 *  [Розширений перегляд](https://uk.wordpress.org/plugins/wp-ajax-query/advanced/)

## Оцінки

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-ajax-query/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-ajax-query/reviews/)

## Учасники

 *   [ aizatto ](https://profiles.wordpress.org/aizatto/)

## Підтримка

Є що сказати? Потрібна допомога?

 [Перейти в форум підтримки](https://wordpress.org/support/plugin/wp-ajax-query/)

## Пожертвування

Ви хотіли б підтримати розвиток цього плагіна?

 [ Пожертвувати на розвиток плагіна ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=aizat%2efaiz%40gmail%2ecom&lc=MY&item_name=Ezwan%20Aizat%20Bin%20Abdullah%20Faiz&item_number=WP%20Ajax%20Query&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)