I wrote some code that works but it cannot bring back any Custom Fields. How do I use the custom fields?
{% set current_episode_program = post.episode_program.ID %}
{% set episode_args = {
post_type: 'episode',
posts_per_page: -1,
'post__not_in': [post.ID],
meta_query: [
{
'key': 'episode_program',
'value': current_episode_program,
'compare': '='
}
]
} %}
{% set episode_posts = mb.get_posts(episode_args) %}
{% for episode_post in episode_posts %}
<div>
{{ episode_post.post_title }}
{{ episode_post.episode_image }}
</div>
{% endfor %}