Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Having fun with wp_list_pages

UserPost

3:24 pm
February 18, 2011


andyc45

Member

posts 2

1

I created a sitewide navigation that uses wp_list_pages.  And with CSS have a nice horizontal drop down menu. This was working great until I installed Scoper, and now that same exact line of code returns about 50 pages instead of the ones that have a metavalue=homenav.  I have tried a few different ways but always I get many pages returned.


<?php $newNav = wp_list_pages('title_li=&sort_column=menu_order&depth=2&metavalue=homenav&echo=0');?>


Please let me know what I can do in order to keep my menu and use Role Scoper.

7:38 pm
February 18, 2011


Kevin

Admin

posts 2503

2

Your function call has a meta_value argument but no meta_key. I had assumed both would be passed, but see that WP does tolerate either/or. So I have updated the development code accordingly. You'll know you have the updated ZIP if the change log in readme.txt makes mention of this.

10:20 am
February 19, 2011


andyc45

Member

posts 2

3

Post Awaiting Approval by Forum Administrator


About the Agapetry forum

Currently Online:

13 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1246

Posts: 5654

Members:

There are 1257 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin