recentpopularlog in

laurakalbag : theme   58

WordPress › Support » Use Category Slug as link ID?
<ul>
<?php
$args = array(
'taxonomy' => 'regions',
'orderby' => 'ID',
'hierarchical' => 1,
'echo' => 0,
'title_li' => ''
);

$categories = get_categories($args);

foreach($categories as $category) {
?>
<li class='<?php echo $category->slug; ?>'>
<a href='<?php echo get_category_link($category->cat_ID); ?>'><?php echo $category->name; ?></a>
</li>
<?php
}
?>
</ul>
wordpress  category  slug  as  link  id  theme 
february 2012 by laurakalbag
Shortcode in a Template
<?php echo do_shortcode("[shortcode]"); ?>
shortcode  wordpress  template  theme 
may 2011 by laurakalbag

Copy this bookmark:





to read