Title: WP Ajax Query
Author: aizatto
Published: <strong>27 de Maio, 2010</strong>
Last modified: 27 de Maio, 2010

---

Buscar plugins

Este plugin **non se actualizou en máis de 2 anos**. É posible que xa non sexa compatible
ou mantido por ninguén, ou podes ter problemas de compatibilidade cando se usa con
novas versións de WordPress.

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

# WP Ajax Query

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

[Descargar](https://downloads.wordpress.org/plugin/wp-ajax-query.0.1.zip)

 * [Detalles](https://gl.wordpress.org/plugins/wp-ajax-query/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/wp-ajax-query/#reviews)
 *  [Instalación](https://gl.wordpress.org/plugins/wp-ajax-query/#installation)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/wp-ajax-query/#developers)

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

## Descrición

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.

## Instalación

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

## Comentarios

Non hai recensións para este plugin.

## Colaboradores e desenvolvedores

“WP Ajax Query” é un software de código aberto. As seguintes persoas colaboraron
con este plugin.

Colaboradores

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

[Traduce “WP Ajax Query” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/wp-ajax-query)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/wp-ajax-query/), bota
unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/wp-ajax-query/),
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/wp-ajax-query/)
por [RSS](https://plugins.trac.wordpress.org/log/wp-ajax-query/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versión **0.1**
 *  Última actualización **Fai 16 anos**
 *  Instalacións activas **10+**
 *  Versión de WordPress ** 3 ou superior **
 *  Probado ata **3**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wp-ajax-query/)
 * Etiquetas
 * [ajax](https://gl.wordpress.org/plugins/tags/ajax/)[JSON](https://gl.wordpress.org/plugins/tags/json/)
   [query](https://gl.wordpress.org/plugins/tags/query/)[wp_query](https://gl.wordpress.org/plugins/tags/wp_query/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/wp-ajax-query/advanced/)

## Valoracións

Aínda non se enviaron valoracións.

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

[Ver todas as valoracións](https://wordpress.org/support/plugin/wp-ajax-query/reviews/)

## Colaboradores

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

## Soporte

Tes algo que dicir? Necesitas axuda?

 [Ver o foro de soporte](https://wordpress.org/support/plugin/wp-ajax-query/)

## Doar

Queres apoiar o progreso deste plugin?

 [ Dona a este plugin ](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)