Getting custom taxonomy link
-
Hi.
I have this snippet of code but don’t know how to get the permalink for the taxonomies where I’ve placed a #.
<?php $args = array('taxonomy' => 'news'); ?> <?php $tax_menu_items = get_categories( $args ); foreach ( $tax_menu_items as $tax_menu_item ):?> <li> <a href="#"> <?php echo $tax_menu_item->name; ?> </a> </li> <?php endforeach; ?> </ul>
I’ve looked through the documentation and the category-template.php file but can’t seem to figure it out.
Any help would be greatly appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Getting custom taxonomy link’ is closed to new replies.