Thread Starter
jakbau
(@jakbau)
i have found something like this to list special fields:
<?php rewind_posts(); ?>
<?php $post = $wp_query->post;
$forsale = new WP_Query('category_name=For Sale&showposts=6');?>
<?php while ($forsale->have_posts()) : $forsale->the_post(); ?>
but dont really know what to do, is it helpfull at all?
starscr3am
that works good ! for text too 🙂
BIG thanks
<?php if ( get_post_meta($post->ID, ‘CUSTOM-FIELD’, true) ) { ?>Your text: <?php echo get_post_meta($post->ID, “CUSTOM-FIELD”, $CUSTOM-FIELD = true); ?><?php } ?>
you get
Your text: custom field value