Customise display of posts depending on category
-
Hi all,
I have two categories on my site: ‘links’ and ‘miscellaneous’. ‘Links’ are quick, del.icio.us style snippets that I want to be quick and easy to view. Everything else (long ramblings, jokes etc. etc.) will go under the ‘misc’ category.
What I need to do on my homepage is setup something like (and please excuse the formatting of this!):
if (category==links)
then
only display the_content()
else
display the_title(), the_content() and the_date()
for each posting. Does anyone have any ideas on the best way I can achieve this? I’ve had a go at seperating out the categories, but it displays ALL the links at the top and then all the other content. I want both categories to be displayed chronologically, so that links become interspersed with main content depending on their authored-on date.
Any help greatly appreciated. Many thanks.
- The topic ‘Customise display of posts depending on category’ is closed to new replies.