0
<?php
// Get the ID of a given category
$category_id = get_cat_ID( 'Category Name' );
// Get the URL of this category
$category_link = get_category_link( $category_id );
?>
<!-- Print a link to this category -->
<a href="<?php echo $category_link; ?>" title="Category Name">Category Name</a>
Labels:
Wordpress-Tutorials
Loading related posts...
Wordpress-Tutorials
8/30/2010 12:46:00 PM
Subscribe to:
Post Comments (Atom)