Help with Block Bindings
-
I’ve created an image custom field
featured_image
in a taxonomy pod and want to display it on the site.This shortcode works as expected:
[pods]{@featured_image._img}[/pods]
However, the image isn’t responsive and doesn’t respect the parent block’s settings.
I want to use the core image block with block binding to better control dimensions, set a border radius, etc. This code does NOT work:
<!-- wp:image {
"metadata": {
"bindings": {
"url": {
"source": "pods/bindings-field",
"args": {
"field": "featured_image"
}
}
}
}
} -->
<figure class="wp-block-image">
<img src="" />
</figure>
<!-- /wp:image -->The image block doesn’t render in the frontend. Is there something I’m doing wrong?
The site is running WP 6.7.1 with 2025 theme and the latest version of Pods.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.