1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress Blogroll to Show Up Only on Index

Discussion in 'Programming' started by necromanc, Mar 26, 2008.

  1. #1

    I have a Wordpress blog, and a I would like to display the links only on the index, not on every single page of the blog. I know that I should search in sidebar.php, but I don't know for what, and what should I do to make this work.

    I think that here I should modify something ...
    <?php } ?>

    <?php /* If this is the frontpage */ if (is_home()) { ?>
    $links_list_exist = @$wpdb->get_var("SELECT link_id FROM $wpdb->links LIMIT 1");
    if($links_list_exist) {
    <div class="sb-links">
    <?php get_links_list(); ?>

    Please help.
    necromanc, Mar 26, 2008 IP