Hallo,
ich habe da ein kleins Problem mit Magic Fields.
hier mal ein paar codes:
PHP
<div class="beitrag">
<?php
$values = get('ort');
foreach($values as $value){
printf('<p>%s</p>', $value );
}
?>
<?php echo get('strasseuhausnummer'); ?>
<?php
$values = get('fahrzeuge');
foreach($values as $value){
printf('<p>%s</p>', $value );
}
?>
<?php echo get('sonstige_fahreuge'); ?>
<?php the_content(__('(mehr...)')); ?>
</div>
Alles anzeigen
jetzt kommt aber bei einem Post dann diese Fehlermeldung.
Warning: Invalid argument supplied for foreach() in /mnt/web7/51/43/5676243/htdocs/a/wp-content/themes/red-minimalista-2.3/red-minimalista-2.3/single.php on line 14
Warning: Invalid argument supplied for foreach() in /mnt/web7/51/43/5676243/htdocs/a/wp-content/themes/red-minimalista-2.3/red-minimalista-2.3/single.php on line 21
kann mir da wer weiter helfen.
Gruß Christian