Article categories
From Photostand Wiki
article_categories(separator, link)
The article_categories function will return every categories associated to the current article.
[edit]
Parameters
- Separator : String value - Default : -
Defines the HTML value that must be displayed between each category.
- Link : Boolean value - Default : True
Defines whether or not a link pointing toward the archives must be added on each category.
[edit]
Examples
Displaying categories
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Article</title>
</head>
<body>
<div>
<h2><?php echo article_title(); ?></h2>
<h5>Categories : <?php echo article_categories(' - ', 1); ?></h5>
</div>
</body>
</html>
In the example above, the categories will be displayed like this "Black and White - Landscape - ..." and there will be a link pointing toward the archives on each category link.

