REST custom type search not working
-
Hello! I need help. I have a custom post type that i have successfully registered and i am able to access through: /wp-json/wp/v2/profile – however I am unable to get ‘search’ paremeter working with the custom fields in that post.
What that means is that if I do /wp-json/wp/v2/pages?search=somestringhere and say in ‘title’ or ‘content’ or ‘excerpt’ the string ‘somestringhere’ exists, then it returns fine. IF however I do the same for custom type /wp-json/wp/v2/profile?search=somestringhere since I do not have ‘content’ or ‘excerpt’ set then it is only returns results IF ‘title’ is set with ‘somestringhere’ – it is not searching any of the custom fields for that post type.
Does this make sense? Can anyone help? Thank you.
The topic ‘REST custom type search not working’ is closed to new replies.