WP Manifestindependent plugin directory
manifest / content / wp-ajax-boilerplate

WPQJX archived

WP Query javaScript & XML ( wpqjx / wp-ajax-boilerplate ). ASYNC WP Query WordPress Plugin. Ajax Filtering Library for WordPress

by Adam McFadyen · github.com/kanopi/wp-ajax-boilerplate · website

22stars
4forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/kanopi/wp-ajax-boilerplate/archive/refs/heads/master.zip

From the readme

WP Query javaScript & XML ( wpqjx / wp-ajax-boilerplate ) A collection of tools for interfacing with wp-query asynchronously. Setup 1. Place a copy of this repo at ./wp-content/plugins/wpqjx in your WordPress installation. 1. Activate plugin 1. Add ajax-output markup to site via html or shortcode 1. Ajax output can be filtered via get-params, element-attributes, & at runtime Basic usage / quickstart Add the html below to a post or page ( or use the [wpqjx][/wpqjx] shortcode ) Output can be filtered 1. Firstly, url-params can be used to modify the default (initial, on page-load) queries of all ajax-output on the page. - ?wpqjxposttype=post&wpqjxposttag=foo would output posts with the tag "foo". - ?category=bar would output posts in the "bar" category. 1. Secondly, shortcode attributes ( or data-attributes on the ajax-loop container html ) can be used to filter the default queries on a per-loop basis. - [wpqjx queryvar="posttype" queryval="post"][/wpqjx] will output posts, even if ?wpqjxposttype=page is set in the url. 1. Finally, additional filters can be added after pageload via the filters markup/shortcodes 1. Sumup: get params set global browser filter, element-att

Read the full README on GitHub →