Regarding Custom Fields in the Loop
-
Here is what I’m trying to accomplish. On the main index, I want a small image aligned left(url = the the custom field) – The title of the post and then the excerpt.
I can get the title and excerpt styled fine, but for some reason I cannot pull the custom field data in. Here is the code I’m trying to use:
<div class="post" id="post-<?php the_ID(); ?>"> <img src="<?php get_post_custom(); ?>"><b><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></b> <br />
I read the Custom Fields codex page, and from what I understand, that should input every custom field(there is only one) right there. Am I wrong?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Regarding Custom Fields in the Loop’ is closed to new replies.