Hi, I am trying to show category name and it’s post but not able to get the posts from that category.
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<div class="dropdown-posts hidden" id="{{$name}}">
<p>{{$name | title}}</p>
<div class="nav-custom-posts">
{{ range where $.Site.RegularPages "Params.categories" "intersect" (slice $name) }}
<a href="{{.Permalink}}" itemscope="" itemtype="https://schema.org/Guide" class="nav-blog">
<p itemprop="name">
{{.Title}}
</p>
<meta itemprop="thumbnailUrl"
content="{{.Params.featured_Image}}" />
<meta itemprop="description"
content="{{.Params.meta_Description}}" />
<meta itemprop="dateCreated" content="{{.Date}}" />
<link itemprop="url"
href="{{.Permalink}}" />
<link itemprop="image"
href="{{.Params.featured_Image}}" />
<meta itemprop="author creator" content="{{.Params.author}}" /><span
class="blog-post-time" itemprop="dateCreated">Last Updated on
{{ if .Params.updateDate }}
{{dateFormat "2 Jan" .Params.updateDate}}
{{ else }}
{{dateFormat "2 Jan" .Date}}
{{ end }}
</span>
</a>
{{ end }}
</div>
</div>
{{ end }}
This is the code. Please help me show categorie’s posts