did you close the tag in the line 21?
OK, try this :
<?php query_posts('category_name=Portfolio'); while (have_posts()) : the_post(); ?>
<?php if(have_posts()) : ?>
<div class='post_snippet'>
<img src="<?php echo get_post_meta($post->ID, "Post Thumbnail", true);?>" class="postthumbnail"/>
<h2><a href="<?php the_permalink(); ?>" title="Permanent link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="posted"><b>Posted in</b> <?php the_category(’, ‘); ?> <?php the_date(); ?></div>
<div class="post"><?php the_excerpt(); ?></div>
<div class="comments"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></div>
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_paginator')) { wp_paginator(); } ?>
<?php else: ?>
<h2> Could not find any blogpost </h2>
<? endelse
<?php endif ; ?>
taghaboy: still not working :S I really need to fix this problem..
Anyone ? I will pay the one who helps me solve the problem.
Come on guys, i will pay 10 $ to the person who helps me.
Hi, try this one :
<?php if (have_posts()) : ?>
<?php query_posts('category_name=Portfolio'); ?><!-- Only portfolio postes, to ctrl the postes : &showposts=1-->
<?php while (have_posts()) : the_post(); ?>
<div class="post_snippet" id="post-<?php the_ID(); ?>"><!-- add the post id, useful for anchor...-->
<img src="<?php echo get_post_meta($post->ID, "Post Thumbnail", true);?>" class="postthumbnail"/>
<h2>
<a href="<?php the_permalink(); ?>" title="Permanent link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h2>
<div class="posted">
<b>Posted in</b> <?php the_category(’, ‘); ?> <?php the_date(); ?>
</div>
<div class="post"">
<?php the_excerpt(); ?>
</div>
<div class="comments">
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</div>
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_paginator')) { wp_paginator(); } ?>
<?php else : ?>
<h2> Could not find any blogpost </h2>
<?php endif; ?>
If it work, donat 10$ to wordpress.org 🙂