Query string to pre-filter | WordPress.org

Plugin Author
YMC

(@wssoffice21)

Here you will need to implement the filter algorithm yourself. When going to the archive page, you need to build the correct algorithm of steps, after which the filter will load those posts that will be transferred in the URL request line.
One of the options, you can apply the following steps:

  • transfer a certain parameter in the URL (term ID, for example)
  • then stop loading the post grid using the API plugin hooks (https://github.com/YMC-22/smart-filter#hooks-js)
  • then form a request using JavaScript and only then run the main YMCTools function (for example:
    YMCTools({
    target: ‘.data-target-ymc545-1’,
    terms: ‘7’
    }).apiTermUpdate();

To do this, you should study the basics of the API plugin to manage all the filter processes.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer