How to change the navigation menu

In your dashboard, go to Appearance > Menus and ensure you have created a menu, add the pages to that menu and then depending on the theme you are using, specify where you want it to appear.

How to remove empty line space in navigation menu?

it’s hard to answer without seeing the HTML and CSS, but from your description the behaviour is correct. If you don’t want the anchor tag to take up any visible room, you should give it a display:none. If you can edit the markup you could either add a class like this <a href=”#” class=”hidden”></a> with … Read more

I want to add the 10 most recent posts under a parent category on the main menu

If I understand you correctly you want the latest posts to appear inside the menu as sub menu items, is that correct? Something like this: Category One top menu item | Post A sub menu item | Post B sub menu item I have found this solution published here: https://alex.blog/2011/09/20/code-snippet-add-a-link-to-latest-post-to-wordpress-nav-menu/, and changed it so it … Read more

How to retrieve a Menu Name by Menu Location with ACF fields

To retrieve the Menu Name: $menu_name = wp_get_nav_menu_name(“menu-products”); Then, using the menu name you can get data like the nav menu: $term = get_term_by(‘name’, $menu_name, ‘nav_menu’); And using the term taxonomy ID you can pull the ACF fields $menu_id = $term->term_taxonomy_id; $post_id = ‘term_’.$menu_id; $field = get_field(‘my_acf_field’, $post_id); To retrieve list of menu Items: $menu … Read more