-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
@field with Images can't declare size #24
Comments
How about @image? |
Didn't see that in the docs at all, i'll dig through the code and see what the params are |
Ah, it's part of the WP portion of it. You have to hardcode the alt tag tho? EDIT2: This works, but not exactly ideal as the |
Does it still hardcode https://developer.wordpress.org/reference/functions/wp_get_attachment_image/ The directive is more or less the above with some magic for getting the image ID (e.g. ACF fields, etc.) and no |
@Log1x Yes it does |
Gotcha.
It looks like the best option might be to do something where if the second param is something like |
Would it be a duplication or a pain to create a |
I'm publishing a release now that allows you to pass |
* feature(image): allow passing `raw` as the second parameter to return an attachment URL (Fixes #24) * bugfix(set): allow the second parameter to accept a value containing commas (e.g. an array) (Fixes #28) * enhancement(utilities): add `limit` param to the `parse` method to allow passing a limit to `explode()` (#28) docs(update): add `@image` example for `raw` * chore(deps): Bump lock files
When using the
@field
with an array image, as the third parameter is the ID, I didn't see anywhere in the documentation on how to declaresizes
andimage_size
within the directive. Was there something I'm missing, or something not understood?The text was updated successfully, but these errors were encountered: