Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Getting wp_list_pages to accept $exclude arguments

UserPost

9:59 am
March 25, 2010


seo brisbane

Member

Brisbane, Australia

posts 2

1

Hi, Long time visitor - firstime poster.

I've got the "simple-section-navigation" plugin integrated into wordpress with the thesis theme. The Role Scoper works well to control admin permissions (thanks Kevin).

The only draw-back is that the $exclude parameter is totally ignored by wp_list_pages in "simple-section-navigation" because of Role Scoper. I tried the RS config options "Remap a page to next visible ancestor….in the get_pages / list_pages call" without success.

I found this previous forum post about using suppress_filter on WP_query and wondered if there was a good way to do something similar for wp_list_pages… http://agapetry.net/forum/new-forum/role-scoper-interferes-with-query/page-1/?value=suppress_filter%251&search=1&ret=all

Time constraints mean I've been forced to hack the core wp_list_pages function to apply a suppress_filter argument and it works but there must be a better way…. so I'm not working in the heart of wordpress.

Thanks,

Ben


8:02 am
June 29, 2011


Kevin

Admin

posts 2503

2

This was fixed in Role Scoper 1.2


About the Agapetry forum

Currently Online:

14 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