filter pages by custom field
I’m feeding a project I’m working on into WordPress. Some of the pages belong in the top nav, some in the subnav under that and some pages link from the footer.
I would like to set up three loops for these pages, and filter by a custom field that I named nav-level with the possible values topnav, subnav and footnav.
First, is this the best way to do this? I need to reserve my categories for other content that does not pertain to specific pages, like my news scroller and some other things.
Second, how to I do this? I saw this post:
which seems to kind of do what I want, only for posts, not pages. What should I do?
Thanks in advance.
- The topic ‘filter pages by custom field’ is closed to new replies.