• Heya, Gang —

    I could really use some help with a simple code question, well to you simple, tough as nails to me. Anyway,…I want to make sure that I got the code right before I do any adding.

    I’m using 1.2, not really interested in upgrading, still tryin to learn this version. And I want to add a image to my left side bar. (http://www.pbrainprojects.com)

    Here is the code:

    <?php
    /* Don’t remove this line. */
    require(‘./wp-blog-header.php’);
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml”&gt;

    <head profile=”http://gmpg.org/xfn/1″&gt;
    <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>

    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>

    <style type=”text/css” media=”screen”>
    @import url( <?php echo get_settings(‘siteurl’); ?>/wp-layout.css );
    </style>

    <link rel=”stylesheet” type=”text/css” media=”print” href=”<?php echo get_settings(‘siteurl’); ?>/print.css” />
    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />

    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘type=monthly&format=link’); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    </head>

    <body>
    <div id=”rap”>

    <div id=”header”>
    <h1>“><?php bloginfo(‘name’); ?></h1>
    <?php bloginfo(‘description’); ?>
    </div>

    <div id=”content”>
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

    <div class=”post”>
    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?> <span><?php edit_post_link(); ?></span></h3>

    <div class=”storycontent”>
    <?php the_content(); ?>
    </div>

    <div class=”meta”> Posted: <?php the_date(); ?> in: <?php the_category() ?>
    <span class=”feedback”> <?php wp_link_pages(); ?> <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?> </span>
    </div>

    <!–
    <?php trackback_rdf(); ?>
    –>

    <?php include(ABSPATH . ‘wp-comments.php’); ?>
    </div> <!– End Post –>

    <?php endforeach; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>

    <div id=”footer”>
    <p class=”credit”><!–<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. –> <cite><?php echo sprintf(__(“Powered by WordPress“), __(“Powered by WordPress, state-of-the-art semantic personal publishing platform”)); ?></cite>
    </div> <!– End foot –>

    </div> <!– End Content –>

    <div id=”menu”>

      <li id=”search”>
      <label for=”s”><?php _e(‘Search:’); ?></label>
      <form id=”searchform” method=”get” action=”<?php echo $PHP_SELF; ?>”>
      <div>
      <input type=”text” name=”s” id=”s” size=”15″ />
      <input type=”submit” name=”submit” value=”<?php _e(‘Search’); ?>” />
      </div>
      </form>

      <li id=”archives”><?php _e(‘Archives:’); ?>

      <?php wp_get_archives(‘type=monthly’); ?>

    <li id=”calendar”>
    <?php get_calendar(); ?>

    <?php get_links_list(); ?>

    </div> <!– End Menu –>

    <div id=”left”>

      <li id=”categories”><?php _e(‘Categories:’); ?>
      <?php wp_list_cats(); ?>

    <li id=”other”><?php _e(‘Other:’); ?>

    <li id=”meta”><?php _e(‘Meta:’); ?>

    [/strong]
    </div> <!– End Left –>

    </div> <!– End rap –>

    </body>
    </html>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Coding Help?’ is closed to new replies.