Skip to content

Commit b3779b5

Browse files
committed
Categories cleanup
1 parent 60c56d6 commit b3779b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/5.x/reference/element-types/categories.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,11 @@ We can display a navigation for all the categories in a _Flavors_ category group
155155
</ul>
156156
```
157157

158-
Keep in mind that this only holds value for category groups with multiple hierarchical levels. If you were working with a “flat” taxonomy, the template above can use a `{% for %}` tag in lieu of Craft’s `{% nav %}` tag.
158+
Keep in mind that this only holds value for category groups with multiple hierarchical levels. If you were working with a “flat” taxonomy, the template above should use a regular `{% for %}` tag in lieu of Craft’s `{% nav %}` tag.
159159

160160
::: tip
161161
To maintain the exact order you see in the control panel, add `orderBy('lft ASC')` to your query:
162+
162163
```twig
163164
{% set myCategoryQuery = craft.categories()
164165
.group('flavors')

0 commit comments

Comments
 (0)