I am utilizing Timber Theme and Struggling considerably with displaying content material on a customized post-type-template:
I’ve arrange single-stories.php
with a related twig file and examined that it really works.
within the single.php
I’ve the next
$context = Timber::context();
$posts = Timber::get_posts(array('post_type' => 'tales'));
$context['stories'] = $posts;
The twig file:
{% for story in tales %}
{{submit.content material}}
{{submit.title}}
{{submit.date}}
{% endfor %}
Any assistance is appreciated.