[resolved] Output custom field
-
I needed to add a custom field to the output.
Since I saw a few people asking this and I managed to solve it, I thought I′d share solution here:In the posts_loop_template.php one must add the following:
<?php echo get_post_meta($ic_posts->query['ids'],'excact-field-name')[0] ?>
It′s necessary to use
$ic_posts->query['ids']
, since$post-ID
doesn′t exist in this context.Hope this helps others.
Cheers,
Paul
- The topic ‘[resolved] Output custom field’ is closed to new replies.