'Wildcard search with slug - Wordpress REST API
We need to search post / pages using slug. I can search for exact slug, however not able to use wildcard search.
http://localhost/wordpress/wp-json/wp/v2/pages?slug=nav0001 - this returns the result as nav0001 is the exact slut
http://localhost/wordpress/wp-json/wp/v2/pages?slug=nav - doesn't return
http://localhost/wordpress/wp-json/wp/v2/pages?search=nav - doesn't return
Is there any possibility? Please advise if anyone has handled this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|