Categories
PHP Wordpress

Worpress: useful codex commands

<?php get_cat_name( $cat_id ) ?> Get the category name if you have the id of it

<?php get_category_link( $category_id ); ?> Get the category permalink

Leave a Reply

Your email address will not be published. Required fields are marked *