How to get latest revision
-
Hello,
I am having some issues with the Menu feature in WordPress and revisions.
I have the home page showing a menu (that is built from WordPress) and all of the pages that in that menu are loaded into that same page. this is used for some scrolling of content, so the visitors don’t have to reload any pages (it is a presentation site – the url is : https://nandanijstad.nl/ – check the menu in the lower portion). The problem is that we are retrieving the page names,content and order from the menu that is defined in the back end, but the retrieved content is not up to date with the latest revisions.
I could use some sql queries to obtain the latest revision (using the object_id parameter in the returned menu_item post), but I was wondering if WordPress can provide a more elegant solution.
Excuse my English, I am not a native speaker.
- The topic ‘How to get latest revision’ is closed to new replies.