single.php and "$cat_ID = get_query_var('cat')"
-
The code below works fine in archive.php, but does not work in single.php
How to get it to work?<?php $cat_ID = get_query_var('cat');?> <?php if (function_exists('get_highest_rated_category')): ?> <ul> <?php get_highest_rated_category($cat_ID); ?> </ul> <?php endif; ?>
The topic ‘single.php and "$cat_ID = get_query_var('cat')"’ is closed to new replies.