How can I filter which children I want to show in a sub navigation menu I have a navigation menu setup but I want to filter out some of the children at level(2) so they aren't showing in the dropdown navigation menu. Here is how I am grabbing the children...

{% set mainEntry = craft.entries.slug(craft.request.getSegment(1)).one() %}
{% set subnav = craft.entries.descendantOf(mainEntry).level(2) %}

&lt;div class="menu"&gt;
            &lt;ul class="no-list-style"&gt;
                &lt;li&gt;&lt;a href="{{mainEntry.getUrl}}"&gt;Home&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="javascript:void(0);"&gt;Conference&lt;/a&gt;&lt;i class="fa fa-chevron-down"&gt;&lt;/i&gt;
                    &lt;div class="sub-menu"&gt;
                        &lt;ul class="no-list-style"&gt;
                            {% for page in subnav %}
                            &lt;li&gt;
                                {{ page.link }} 
                            &lt;/li&gt;
                            {% endfor %}
                        &lt;/ul&gt;
                    &lt;/div&gt;
                &lt;/li&gt;
             &lt;/ul&gt;
          &lt;/div&gt;
The way I usually accomplish this is to add a "Hide From Nav" Lightswitch field to the sections I want to filter.

This will filter out any entries where the Lightswitch is "on".

{% set subnav = craft.entries.descendantOf(mainEntry).hideFromNav('not 1').level(2) %}