get_post_meta problem
-
Hi
why do “.countdownhorse” only get the first timestamp ?<?php $timestamp = get_post_meta($post->ID, 'sale_price_dates_to');?> <?php foreach ($timestamp as $value) { echo $value; ?> <script type="text/javascript"> $(function () { $('.countdownhest').countdown({until: new Date(<?=date('Y, n-1, j', $test)?>), compact: true, layout: '<b>{dn} Dage {hnn}{sep}{mnn}{sep}{snn}</b> {desc}', description: ''}); }); </script> <?php } ?>
The topic ‘get_post_meta problem’ is closed to new replies.