Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134302

Laustinspayce on "Individual articles appearing differently according to category in archive view."

$
0
0

Hello!

I'm wondering, if when viewing categories or archives (or even latest posts) to change the display style of individual articles in this view.

For example:
When browsing an archive for all posts, the individual posts (before you click through to read the full article) below will appear differently if:
They are photography posts (with category: photo) = Photo on the left of the excerpt.
They are video posts (with category: video) = youtube video embedded (or a photo we'll supply if it's not possible) on the right of the excerpt.
They are any other category = The post excerpt is taller and longer to be a similar size to the previous two examples.
If a post is categorised Video & Photo, then the Video style will take priority, or maybe there's a way to embed both?

This would aid in people browsing all posts to realise what general category the post belongs to, and make the page visually a little bit more interesting.

I've found plenty of guides and hints relating to displaying different category pages differently, but nothing unfortunately for viewing an archive for all posts, but being able to show each post/excerpt differently depending on the category(ies) it belongs to.

Thanks!
Laustin


Viewing all articles
Browse latest Browse all 134302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>