Forums

Breaking wp_list_pages over multiple columns (1 post)

  1. eggnog
    Member
    Posted 2 years ago #

    I'm wondering if anyone can help me with this problem.

    I'm using wp_list_pages to display four columns of navigation at the top of my page. The two columns on the left contain the child pages of a parent page called "Music", and the two columns on the right contain the child pages of a parent called "sound". Up until now I've been trying to hack a solution out of using the number= and offset= arguments belonging to the wp_list_pages tag. For example, the first column of music is set to number=6 while the second column of music is set to offset=6, for a total of 12 visible nav items.

    The problem with this is method is twofold: 1) I have to manually re-jig the code every time new child pages are added and 2) the offset function isn't working.

    I came across this thread that discusses automatically breaking a categories list over two columns: http://wordpress.org/support/topic/227180?replies=33

    This would be the ideal solution for my list_pages problem. Can anyone advise me on if this is possible or better yet point me in the direction of how it might be coded?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic