Closed imajim closed 8 years ago
ok, i found this :
$annonce = AnnonceImmo::find($post->ID);
foreach($annonce->meta()->get() as $meta){
...
}
@imajim I'm closing this issue, assuming that you were able to find what you were looking for. Feel free to reopen it if that isn't the case.
Hello,
I've recorded a POST and his metaKeys/metaValues with :
$annonceImmo->create($attributes)->meta()->saveMany($args)
It's working, no problem, data are recorded in DB. But if I call :
return nothing. Any Ideas to get the metas associeted to a post ?