Hey guys,
When adding an image to a page or post wordpress is automatically adding a paragraph tag as parent holding the image.
since there is no parent selector in CSS I'd love to find a solution to apply a specific classname to those paragraphs holding an actual image.
Any idea if I can use add_filter() to apply a classname to each p that holds an image?