Skip to main content
3 votes

Can't assign menu parent id or menu item breaks

Update Solution was easy I'm stupid I just tweaked the menu creation and directly assigned the parent-menu-id: if (!empty($term->parent) && $term->parent != 0) { $...
WMMedia's user avatar
  • 51
2 votes

Root category template?

Today I myself was faced with such a need. Google didn't help. I found a solution on my own. There is a hook — 'template_include'. Let's add it to the functions.php file. add_filter( 'template_include'...
stylok's user avatar
  • 21

Only top scored, non community-wiki answers of a minimum length are eligible