<p>If I understand properly, you want to show <em>related</em> FAQ based on categories.</p>
<p>On your entry template, you could do something like this:</p>
<pre><code>{# Fetch the categories of the current entry #}
{% set entryCategories = entry.yourCategoriesFieldHandle.all() %}

{# Find related entries #}
{% set relatedFaqs = craft.entries()
    .section('faqs')
    .relatedTo(entryCategories)
    .all() %}

{# Display related FAQs #}
&lt;ul&gt;
{% for entry in relatedFaqs %}
    &lt;li&gt;&lt;a href=&quot;{{ entry.url }}&quot;&gt;{{ entry.title }}&lt;/a&gt;&lt;/li&gt;   
{% endfor %}
&lt;/ul&gt;

</code></pre>
<p>Change <code>yourCategoriesFieldHandle</code> to what your field handle is and <code>.section('faqs')</code> to the correct section handle for your FAQ's section.</p>

CC BY-SA 4.0
2021-03-17T20:44:55.580Z
Thank you very much!
Spheriri
CC BY-SA 4.0
2021-03-15T14:24:05.830Z
2021-03-15T14:24:05.830Z
Oli
<p>I'm abit lost as to how to structure my FAQ page.</p>
<p>I have a single FAQ page that pulls in every FAQ post, these posts come from the FAQ Entries channel.</p>
<p>But</p>
<p>On the single FAQ page, how do I add a navigation that only shows certain FAQ Entries using categories?</p>

<categories><navigation>
Adding Categories navigation to show certain entries
# Adding Categories navigation to show certain entries

(Asked by: username_0 on 2021-03-15)

I'm abit lost as to how to structure my FAQ page.

I have a single FAQ page that pulls in every FAQ post, these posts come from the FAQ Entries channel.

But

On the single FAQ page, how do I add a navigation that only shows certain FAQ Entries using categories?

**Tags:** categories, navigation


---

## 1 answers

### Answer by username_1 on 2021-03-15. Score: 2 | Accepted answer

If I understand properly, you want to show related FAQ based on categories.
On your entry template, you could do something like this:
{# Fetch the categories of the current entry #}
{% set entryCategories = entry.yourCategoriesFieldHandle.all() %}

{# Find related entries #}
{% set relatedFaqs = craft.entries()
    .section('faqs')
    .relatedTo(entryCategories)
    .all() %}

{# Display related FAQs #}

{% for entry in relatedFaqs %}
    {{ entry.title }}   
{% endfor %}



Change yourCategoriesFieldHandle to what your field handle is and .section('faqs') to the correct section handle for your FAQ's section.

> **Comments:**
> **username_0**: Thank you very much!  

---

