Forums

How to get latest revision (2 posts)

  1. v3r50r
    Member
    Posted 10 months ago #

    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 : http://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.

  2. MichaelH
    Volunteer
    Posted 10 months ago #

    Might review some of the examples here:
    http://codex.wordpress.org/Class_Reference/WP_Query

    If you do mean revisions, then look at the Type & Status Parameters section in that article.

Reply

You must log in to post.

About this Topic