[Plugin: Magic Fields] Display Custom Fields Content
-
Hello,
in the single.php I added the custom field contents into my posts like this
<div class="entry-content"> <?php the_content(); ?> <ul> <?php if ( get('CUSTOM_FIELD_NAME1',TRUE) ) { echo "<li>Custom Field Name1: ", get('CUSTOM_FIELD_NAME1'), "</li>"; } ?> <?php if ( get('CUSTOM_FIELD_NAME2',TRUE) ) { echo "<li>Custom Field Name2: ", get('CUSTOM_FIELD_NAME2'), "</li>"; } ?> </ul> </div><!-- .entry-content -->
This all works fine for the single post view. However, on my front page (showing full posts, not excerpts) the content of the custom fields is not displayed.
What is my mistake?
I am using WP3 with the Twenty Ten theme.
Thanks for any help!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: Magic Fields] Display Custom Fields Content’ is closed to new replies.