Answer the question
In order to leave comments, you need to log in
How to automatically add new entries to Wordpress menu?
I ask the experts to help in this matter - a blog on WP, there is a top bootstrap menu that leads to pages (For example: About / Post List / Contact).
One of the menu items (Post List) is a dropdown (dropdown-menu), when clicked, a list of posts should appear. How to make it clear - register and create a menu of pages and add posts in the console as sub-items.
Question - how to make it so that a new post after publication is automatically added to the end of the list?
What would not have to climb into the "menu" section of the console every time and add a new post to the list?
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Thanks for the answer, but I either did not understand it or did not formulate the question accurately. There is a blog where the author posts articles. In the header we display a menu of pages: about the author/list of articles/contact. When you click on the "list of articles" item, a list of post titles is opened, which the author adds through the admin panel. Articles belong to different tags and categories. Now this submenu with a list is done manually in the panel - after publishing a new entry, add it to the submenu in the Appearence -> Menus section. The task is to make it so that the blog author does not think about the menu, a new entry would appear automatically after publication. If you make some separate "service" category, in which to add all the entries and display only it in the submenu - IMHO you still need to make a handler, which, through some get_posts, receives posts of this category, displays their titles in an html container with display: non and js to process clicks. But there is an unconscious feeling that everything is much simpler.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question