data-post-id="__" css selector?


Staff member
Is it possible to hide an element via css from HTML markup "data-post-id="226""? I'm in wordpress and on the portfolio I need to hide an element on several posts, but since it's automated I can't do it manually.

I tried .data-post-226 { display:none; } since that works for page and post id's, but this is a little different since the id is in quotes.