WordPress.org

Ready to get started?Download WordPress

Forums

Upgrading and old themes code. (1 post)

  1. jwwceo
    Member
    Posted 7 years ago #

    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!

    <?php
     $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>
    		</div>
    		</div>
    		</div>
    		</div>
    		<?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic