Suggestion: make class from post type
-
Currently there is no way to style a listing item based on its post type (because I suppose it is assumed that only ONE post type is ever queried or returned). This is a dangerous assumption because any plugin may modify the query parameters to return more than one post type in a query.
Therefore, it will be very useful to have classes on the listing items to distinguish different post types. For example:
class=”post-type-post post-id-123 post-published”
class=”post-type-portfolio post-id-457 post-draft”and I suppose this will be extremely easy to add.
The topic ‘Suggestion: make class from post type’ is closed to new replies.