• I just upgraded to WordPress 2.8.2 and this piece of code in my theme is no longer working…

    <ul id="prodCats">
    <?php
    $categories = get_categories('orderby=order');
    foreach ($categories as $cat) {
    	if ($cat->category_nicename != 'general') {
    		if ($cat->category_parent == 0) { ?>
    			<li><a href="<?php echo get_option('home');?>/products/#<?php echo $cat->category_nicename; ?>">
    				<img src="<?php echo get_option('home');?>/catImgs/<?php echo $cat->category_nicename; ?>.jpg" />
    				<p class="catName"><?php echo $cat->cat_name; ?></p>
    			</a></li>
    <?php 	}
    	}
    } ?>
    </ul>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Upgraded to 2.8.2, “get_categories” not working…’ is closed to new replies.