Word press sidebar.php help needed.

Discussion in 'Services' started by patrickberry, Aug 2, 2006.

  1. #1
    DONE. DEAL CLOSED AND COMPLETED.

    I am not programmer. I am unabble to edit the following from the sidebar of connections reloaded 1.5 to get the blog roll to show on all pages, posts ect.

    I will pay 10 usd (via paypal only) to the first to pm me the code so that i can just copy paste it into the sidebar.php to replace what i have copy pasted here.

    <?php if(is_home()) { ?>
    <li id="links">
    <h2><?php _e('Links:'); ?></h2>

    <?php
    if (substr(get_bloginfo('version'), 0, 3) < 2.1)
    {
    $cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
    }
    else
    {
    $cats = get_categories("type=link&orderby=name&order=ASC&hierarchical=0");
    }

    if ($cats) {
    foreach ($cats as $cat) {
    // Handle each category.
    if (substr(get_bloginfo('version'), 0, 3) < 2.1)
    {
    // Display the category name
    echo ' <li id="linkcat-' . $cat->cat_id . '"><h3>' . $cat->cat_name . "</h3>\n\t

    \n";
    // Call get_links() with all the appropriate params
    get_links($cat->cat_id,'
    '," ","\n", TRUE, 'name', FALSE, FALSE, -1, FALSE);
    }
    else
    {
    // Display the category name
    echo ' <li id="linkcat-' . $cat->cat_ID . '"><h3>' . $cat->cat_name . "</h3>\n\t
    \n";
    // Call get_links() with all the appropriate params
    get_links($cat->cat_ID,'
    '," ","\n", TRUE, 'name', FALSE, FALSE, -1, FALSE);
    }
    // Close the last category
    echo "\n\t
    \n\n";
    }
    }
    ?>


    I understand that <?php if(is_home()) { ?> is part of the problem, but am unable to correctly edit the sidebar.php without the whole sidebar just dissappearing !

    Thanks
     
    patrickberry, Aug 2, 2006 IP
  2. patrickberry

    patrickberry Active Member

    Messages:
    1,088
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Done. Closed.
     
    patrickberry, Aug 2, 2006 IP