Skip to content

Conversation

@adamwoodnz
Copy link
Contributor

This enables the block to be used in query loops, for example the Make homepage team grid.

Uses server side rendering so that the permalink can be easily looked up.

@adamwoodnz adamwoodnz force-pushed the try/link-wrapper-use-post-permalink branch from 5fdbaeb to 5ac80b3 Compare October 3, 2024 02:40
}
},
"dimensions": {
"minHeight": true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allow configuring the wrapper to fill the grid item.

This enables the block to be used in query loops, for example the Make homepage team grid
@adamwoodnz adamwoodnz force-pushed the try/link-wrapper-use-post-permalink branch from 5ac80b3 to 05ff02f Compare October 3, 2024 02:42
@ryelle
Copy link
Contributor

ryelle commented Oct 7, 2024

I think changing the save function like this will cause invalid block errors in the editor. But the render function would still work, $content should be the link markup. Maybe that + WP_HTML_Tag_Processor to update the href attribute if no url?

I've done similar with just str_replace on the theme directory, so this would definitely be useful 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants