Using PHP inside Tailwind?
-
Can anyone help with best way to use a wp media image inside a tailwind class?
<div class"bg-[url('<?php echo wp_get_attachment_image_src(19); ?>')]"> ... </div>
This doesn’t work unless I expressively enter the url but I want the image to be entered dynamically.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using PHP inside Tailwind?’ is closed to new replies.