rest api endpoint not work

[ad_1]

Hi,

Please follow the instructions on the solution on this post:

Adding “search” in the settings will make it work.

Please let me know if you solved it.

Thanks

I added ‘search’ to make the code work,
but I found that if the result is empty, it will be recorded multiple times. If there is data in the result, it will only be recorded once

e.g.

‘cat’ have 1 post in JSON,Search statistics occur once, and subsequent requests of the same type will no longer be recorded

‘bibibi’ have no post in JSON,Search statistics will always be recorded

I hope to receive your help

thanks

Oh my god, it turned out that it was because I used caching technology on Restapi, and I have already solved this problem. Thank you for your reply

  • This reply was modified 1 minute ago by 小鱼哥.

 

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