Support » Fixing WordPress » Upgrading and old themes code.

  • Hello,

    I just bought a pretty cool theme and uploaded it, but it turns out it doesn’t support the latest version of word press. Everything looks ok, except for one block that list out my Blogroll.

    Here is the offending code from the old theme. If anyone can help me figure out how to fix it that would be awesome!

     $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
     foreach ($link_cats as $link_cat) {
     ?>								<div class="cats_bg3">
    	<div class="cats4">
    	<div class="cats5">
    		<div class="sub_cats5">
    			<div class="left_header"><?php echo $link_cat->cat_name; ?>:</div><br style="line-height:12px "/>							<ul>
    		<?php get_links($link_cat->cat_id, '<li>', '</li>', '', FALSE, 'id', TRUE,
    TRUE, -1, TRUE); ?></ul>
    		<?php } ?>
  • The topic ‘Upgrading and old themes code.’ is closed to new replies.