7th December 2012, 10:55
#7
1 out of 1 members found this post helpful.
Ceva faci gresit. Daca nu rezolvi pana diseara te ajut eu dupa ora 19.
Ca idee, iti recomand sa extragi valorile din custom fields astfel:
Cod PHP:
<?php echo get_custom_field('custom_meta_instructions'); ?>
deci afisarea o faci asa:
Cod PHP:
<?php if (get_custom_field('custom_meta_instructions')) : ?>
<div class="instructions"><?=get_custom_field('custom_meta_instructions');?></div>
<? endif; ?>
<?php if (get_custom_field('difficulty')) : ?>
<div class="difficulty"><?=get_custom_field('difficulty');?></div>
<? endif; ?>
Prin urmare renunti la blocul de cod <?php
$custom_meta = get_post_custom($post->ID);
$instructions = $custom_meta['custom_meta_instructions'][0];
$difficulty = $custom_meta['custom_meta_difficulty'][0];
$gamefile = $custom_meta['custom_meta_gamefile'][0];
?>
Creștere putere, consum redus și optimizare software motor - servicii profesionale de
chiptuning