View Single Post
Old 07-28-2011, 12:46 AM  
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by SlamDesigns View Post
Thanks...but it didn't work. It displays one box, with no content.
then it probably has something in the functions.php file, because that SHOULD work. Isee you're using custom fields there, so maybe you're missing them? Hard to say without seeing everything, and on top of that the code is a mess

try using just the default simple WP loop, many times coders try to look cool using queries and they mess things up, so maybe that will solve it for you.

so

Code:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
				<?php the_content_limit(350, "[Read more...]"); ?>
						
				<?php endwhile; ?>
<?php endif; ?>
if this works, just add the conditionals for those images using custom fields. If this doesn't work, then there's something else acting up, this is the basic loop in its simplest form

and btw, there's a reason why WP has the post thumbnails feature, try using that. It's better, faster and less workload for you
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote