List pages by custom field (2 posts)

  1. tomazpipan
    Posted 9 years ago #

    Hi all!

    I will cut to thre chase:

    I define custom fields in each Page that I publish and I would like the wp_list_pages() to sort the list in the side bar by a given custom field. Is that possible?

    For example: I have a key called Project. I can have 3 values for that (A, B and C). Can I tell to list the pages in the wp_list_pages() tag according to these values? If not is there any other way instead of using wp_list_pages tag?

    It would be great if someone can help me out I am really getting desperate on this one!

  2. tomazpipan
    Posted 9 years ago #

    Oh common guys; I didn't know this is such a problem!


Topic Closed

This topic has been closed to new replies.

About this Topic