-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Query block duplicate "read more" link #38373
Comments
I believe this has been brought up before, but it is difficult to search the GitHub repo, so I don't have the link ready right now. Twenty Fifteen adds the following code:
I don't know how the block could be made aware of that 🤔. |
I did search as well but could not find something as well. |
I think this would be very hard to detect as is the case for similar php filters and the consistency between editor and front end. A similar case for |
Random idea to check if the excerpt ends in an anchor. :) |
This is likely to never get a fix (see #38748) as the solutions would be very fragile and the situation is very exotic. |
I have a POC from a while ago with another approach. It could use some feedback/thoughts 😄 |
@ntsekouras is #38662 more likely to solve #22269 ? |
Description
When using a classic theme (e.g. Twenty Fifteen) and using a posts list block in a post (for example to create an index to related content in a category), one can end up with duplicated read more links:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
WordPress 5.9
Gutenberg trunk
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: