Blogroll does not appear in sidebar (4 posts)

  1. dmiceweb
    Posted 7 years ago #

    I created a blogroll but it does not appear on the sidebar on the home page

  2. brockangelo
    Posted 7 years ago #

    If your theme has Widgets, you'll need to add the blogroll widget

    If it doesn't have widgets, you'll need to edit the sidebar.php

  3. samiotis
    Posted 7 years ago #

    Same problem. The blogroll doesn't show.
    See below the code i found in the sidebar.
    The theme is not widgitized.
    Something must be wrong with this code and I'm not very good with php. Can anybody help me out?

     $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
     foreach ($link_cats as $link_cat) {
      <div id="linkcat-<?php echo $link_cat->cat_id; ?>" class="sideheading"><?php echo $link_cat->cat_name; ?></div>
       <ul class="heart">
        <?php wp_get_links($link_cat->cat_id); ?>
     <?php } ?>
  4. samiotis
    Posted 7 years ago #

    Solved, thanx anyway
    I exchanged the above, rather complicated version to the one below. Works fine and is far less headache.

    <div class="sideheading">Resources</div>
    <ul class="heart">
    <?php get_links_list(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic