This seems like it should be simple, but I'm struggling.
I have created a new taxonomy, "Media Categories" and assigned it to the content type, "Media".
I created a view selecting the content type "Media" and with a query filter using the aforementioned media category (see attached screenshot).
The view is outputting some automatic html that I seem to have no control over and is not in my content template (I've removed the URLs here for brevity):
<p class="attachment"></p>
Again, the above markup is not in my content template or view html.
Is there a way to prevent that markup from showing, and to select which attributes to output? I want to generate something similar to the paragraph tag above, but on my own terms.
Thank you for contacting us and I'll be happy to assist.
Since the "Media" is a WordPress' native custom post type, it's title and body fields get affected by WordPress' own and the active theme's filter to handle media attachments.
To avoid the extra HTML that comes with the title shortcode, you can include output="raw" attribute to it:
I ended up in a very similar place to your suggestion. This is the shortcode I created; this way I can control the size returned. Hopefully this will help someone else.