Data Filter using Fetch API

Divjot Singh
Published

0
  • Project creator

Brief

To create a filter for custom post type in which posts are filtered using metadata and data is updated without page refresh.

Challenge

To create a filter, the query needs to be modified every time based on selected parameters of the filter.

Workflow

We utilize the AJAX functionality provided by WordPress. The action hooks (wp_ajax_ and wp_ajax_nopriv_) along with the Fetch API is used to create a filter using Fetch API only without employing resource intensive libraries such as jQuery.

Link

[https://www.twine.net/signin