どうすれば$your_date = strtotime("2010-01-01")
ダイナミックにできますか?つまり( "2010-01-01")a( "動的")?
コードは次のとおりです。
$started = get_post_meta(get_the_ID(), 'wtf_started', true);
$now = time(); // or your date as well
$your_date = strtotime("$started");
$datediff = $now - $your_date;
echo floor($datediff/(60*60*24));