When I want to get the posts from my Wordpress Rest API, the sticky posts are not at the top, but are sorted by date like the others.
When I try to sort by sticky
wp-json/wp/v2/posts?orderby=sticky
I get this error message:
code: "rest_invalid_param",
message: "Invalid parameter(s): orderby",
If I append the following parameters instead
wp-json/wp/v2/posts?ignore_sticky_posts=0
or
wp-json/wp/v2/posts?ignore_sticky_posts=1
the sorting does not change.
How can I make the sticky posts always be at the top?
wp/v2/posts/?sticky=true.