-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add pages to suggestions for UrlInput #7951
Comments
I feel this should also include public custom post types as well. |
Oh. The problem is the usage of the posts endpoint from the rest api. You can cheat a bit and customize the query params with a small filter:
Or if you are lazy and want to include all post types just use I know it kills the sense of the posts endpoint. It would be a better solution to have a GET parameter for example to set the required post types,. This is only a quick and dirty solution. |
I think this is covered by the changes in #7894. I know @danielbachhuber has been guiding that with @felixarntz — maybe one of you can confirm and potentially tag or close this issue? |
Yes, this issue is a duplicate of #2084 |
Thanks for the info and sorry for the duplicate. A search didn't brought similar issues up. |
Issue Overview
I'm using Gutenberg in a project for which I only need to use pages, not posts. The UrlInput only shows suggestions for posts, which makes linking to pages impossible without typing or pasting the url. It would be very nice if pages would show up as suggestions as well or at least have the possibility to customize the suggestions of the UrlInput. When I look at the current implementation this seems to be impossible too.
Steps to Reproduce (for bugs)
Expected Behavior
Pages should come up in the suggestions.
Current Behavior
Only posts are showing up.
Possible Solution
Include pages in the suggestions by default or make it possible to customize the suggestions.
The text was updated successfully, but these errors were encountered: