I'm trying fit wordpress into this site, and rather than developing a theme, I'm just utilizing the APIs to place the blogs onto this site. I'm tied to getting comments. After I call$comments = get_comments(array('post_id=>'.$publish->ID,'order' => 'ASC')) I recieve comments for those posts. I'm not a PHP developer, I'm just learning now. I'm a java developer really.. Anyway here's the code that does not work:

<?php global $more; 
$more = -1;
$posts = get_posts('numberposts=10&order=ASC');
foreach ($posts as $post) {

    <div class="article">
        <h2><?php the_title(); ?></h2>
        <div class="clr"></div>
        <h3><?php the_time('F j, Y'); ?></h3>
        <div id="content<?php echo $counter; ?>" class="section sectionborder">
            <?php the_content(); ?>
            <h2>Post ID:<?php echo $post->ID?></h2>

            * This is where I call get_comments and the post is being passed
            * correctly to it. Since the post ID is printed correctly above. But
            * I am getting comments not related to this post as well

                $comments = get_comments(array('post_id=>'.$post->ID,'order' => 'ASC'));
                echo '<h3>Comments</h3>';
                foreach($comments as $comment) :
                    echo('<div class="comment">'
                        '<span class="comment-author">-'. $comment->comment_author. '</span>
                        &nbsp;<span class="comment-date">'.date('Y-m-d H:i', strtotime($comment->comment_date)) .'</span>

        <div id="a<?php echo $counter; ?>">
            <a href="#">Read More</a>                     
    <?php $counter++; ?>
<?php } ?>  

I'm not sure about wordpress, but you possess an error here that could cause this problem:

array('post_id=>'.$post->ID,'order' => 'ASC')

Ought to be:

array('post_id' => $post->ID, 'order' => 'ASC')