i only have 3 customfields.
size,brand,extrainfo
i did like this for item.php
(bender base theme... in this case im using osclasswizards theme)
<div id="custom_fields">
<?php if( osc_count_item_meta() >= 1 ) { ?>
<br />
<div class="meta_list">
<?php while ( osc_has_item_meta() ) { ?>
<?php if(osc_item_meta_value()!='') { ?>
<div class="meta"> <strong><?php echo osc_item_meta_name(); ?>:</strong> <?php echo osc_item_meta_value(); ?> </div>
<?php } ?>
<?php } ?>
</div>
<?php } ?>
</div>
Replace with :
<div id="custom_fields">
<div class="meta_list">
<?php $custom_field = array();
if( osc_count_item_meta() >= 1 ) {
while ( osc_has_item_meta() ) {
if(osc_item_meta_value() !="") {
$custom_field_name[osc_item_meta_slug()] = osc_item_meta_name();
$custom_field_value[osc_item_meta_slug()] = osc_item_meta_value();
}
}
} ?>
<?php
if ($custom_field_value['dim-size']) { ?>
<p class="left"><strong><?php _e('Size', OSCLASSWIZARDS_THEME_FOLDER); ?> :</strong><br><?php echo $custom_field_value['dim-size'] ;?></p>
<?php } ?>
<?php
if ($custom_field_value['brand']) { ?>
<p class="left"><strong><?php _e('Brand', OSCLASSWIZARDS_THEME_FOLDER); ?> :</strong><br><?php echo $custom_field_value['brand'] ;?></p>
<?php } ?>
<?php
if ($custom_field_value['info']) { ?>
<p class="left"><strong><?php _e('Extra Info', OSCLASSWIZARDS_THEME_FOLDER); ?> :</strong><br><?php echo $custom_field_value['info'] ;?></p>
<?php } ?>
</div>
</div>
PS :
need add all custom filed in to like this :
<?php
if ($custom_field_value['YOUR-IDENTIFIER-NAME']) { ?>
<p class="left"><strong><?php _e('YOUR CUSTOM FILEDS NAME', OSCLASSWIZARDS_THEME_FOLDER); ?> :</strong><br><?php echo $custom_field_value['YOUR-IDENTIFIER-NAME'] ;?></p>
<?php } ?>
sure.. just update po and mo file for multi language site.