• Resolved corycook

    (@corycook)


    This is an awesome plug in, exactly what I was looking for. However I am having a little problem with it displaying correctly. I have tried it multiple ways with not much success.

    This is the short code I was trying to use. ‘[autonav display=”list,siblings,excerpt,title” paged=”15″ order=”desc” orderby=”date”]’ But what happens is it displays every single page on our site and not just the siblings of the page I put it on and it even displays the parent page too. I have also tried using the ‘postid=”2388″‘ tag too but that only displays the parent page 2388.

    Any ideas on how to get it just to diplay the siblings of page id 2388 would be greatly appreciated. 🙂

    Thanks.
    Cory

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author wlindley

    (@wlindley)

    Could you try this beta version, please? (And just roll back if you have problems, but I would like to see the error log in that case if possible)

    AutoNav 1.4.0 beta 11

    Thread Starter corycook

    (@corycook)

    Nope no luck with this version either… Tried multiple ways again but still is doing the same thing as before. it either displays every page on the site, or just one, or nothing every way that I try it.

    Thread Starter corycook

    (@corycook)

    I guess I didn’t have wp_debug set to true.. I went ahead and set it to true now so maybe a debug log will get formed that I can send you.

    Plugin Author wlindley

    (@wlindley)

    Let’s see. [autonav display="list"] should display a list of the current page’s children. [autonav display="list,siblings"] should display a list of the “sibling” pages to the current page. In testing, those seem to work. However adding the orderby="date" seems to break things, not sure why yet. Can you verify please?

    Thread Starter corycook

    (@corycook)

    Sorry…. I disabled the plug in and just wrote my own code in my page’s template file to do what I wanted it to do. So I can not really verify if that works or not. I appreciate you taking the time to try and help me out though 🙂

    Plugin Author wlindley

    (@wlindley)

    Version 1.3.9 will correct using orderby='date' With the current version you must use orderby='post_date' for pages, but orderby='date' for posts… which is due to an inconsistency internal to WordPress between the get_pages() and get_posts() functions.

    Also, siblings always means “siblings of the current page” so combining it with postid= has no effect. I am still unsure why it was adding all the pages on your site, however; I cannot replicate that in testing.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not displaying subpages in list correctly’ is closed to new replies.