Multiple Categories Separated by Commas
Often, folks like to have their EE blog display multiple categories for each post separated by commas but without a comma at the end, like this:
Posted by Tom on 09/28 at 11:52pm in Blogging, Personal, Web
The EE documentation describes how to do it. Here is some sample code that I have used in my templates:
Posted by <a href="{profile_path=member/index}">{author}</a>
on {entry_date format='%m/%d'} at {entry_date format='%h:%i %A'}
in {categories weblog="{master_weblog_name}" backspace="7"}
<a href="{path={master_weblog_name}
/index}">{category_name}</a>, {/categories}
on {entry_date format='%m/%d'} at {entry_date format='%h:%i %A'}
in {categories weblog="{master_weblog_name}" backspace="7"}
<a href="{path={master_weblog_name}
/index}">{category_name}</a>, {/categories}
The trackback URL for this entry is: Trackbacks are disabled for this entry
Trackbacks:
No trackbacks yet.
Comments:
No comments yet.
Next entry: Display Text if No Comments
Previous entry: “Simple” Template
