Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post should still be visible in REST-API with slug lookup #117

Open
pkreissel opened this issue Jan 6, 2023 · 0 comments
Open

Post should still be visible in REST-API with slug lookup #117

pkreissel opened this issue Jan 6, 2023 · 0 comments

Comments

@pkreissel
Copy link

Is your feature request related to a problem? Please describe.

Currently when you use Wordpress API to lookup an unlisted post using:

https://example.com/wp-json/wp/v2/posts/?slug=this-is-the-slug

The response is empty.

Describe the solution you'd like

However it would be better if the response would still show the post, but with an "unlisted" attribute.

Describe alternatives you've considered

There are none.

Additional context/screenshots

NA

@pkreissel pkreissel changed the title Post should still be visible in API with slug lookup Post should still be visible in REST-API with slug lookup Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant