Create a dropdown menu for Messages from a category in Wordpress

I am working on this site www.annapogossova.com for a friend.

Currently, menu navigation is done through the pages into which I created each gallery.

When the time comes to expand the site - I want it to be quite dynamic, so that each page / gallery page is automatically added to the drop-down menu, and it does not need to edit the nav.php file so that they display correctly.

Of course, is there work for this? Perhaps I misconfigured the setting - should I create galleries as messages, not pages?

If the pages are in order - is there a better way to work with the menu so that it displays pages under each category?

I feel that in the future it will work much better if all the galleries were posts in the category?

So, the structure of Wordpress is currently:

Nav text html> ul and li creates manual navigation list pages> Page (each new gallery) with iframe

Here's what nav.php looks like

-Edit, I can not post more than 1 link .. sorry

+3
source share
1 answer

, . . (.. ). , :

Photography
    Fashion
        Gallery 1
        Gallery 2
        Etc.
    Still Life
        Gallery 1
        Gallery 2
        Etc.
Art & Illustration
    Gallery 1
    Gallery 2
    Etc.

nav.php <ul> :

<?php wp_page_menu(); ?>

.

+3

Source: https://habr.com/ru/post/1755756/


All Articles