How to retrieve all meta data directly from the $post object? Such as $post->related_topics?
Question
I set up a meta field related_topics
that I use to associate lesson
topics
to a custom post type lesson
.
For a given lesson
there could be several related topics
. For a given lesson
that has multiple topics
, I noticed that $post->related_topics
only returns the first topic
instance, when in fact there are more than one. Is there some method to use on a $post object
, something like $post->related_topics->all()
?
thanks,
Brian
0
post-meta, posts
3 years
2019-10-31T08:40:32-05:00
2019-10-31T08:40:32-05:00 0 Answers
69 views
0
Leave an answer