How do I only show the parent categories in the channel form?
With the code below I am getting both parent and children categories
{exp:channel:form channel="training_institutions" url_title="{segment_3}" author_only="yes" datepicker="no" return="training-program/update/success"}
{category_menu}
<label for="categories">Country</label>
<select name="category[]" id="categories">
{categories}
<option value="{category_id}"{selected}>{category_name}</option>
{/categories}
</select>
{/category_menu}
{/exp:channel:form}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.