[wp-hackers] get_post_ancestors() inside a custom function

Steve Taylor steve at sltaylor.co.uk
Wed Oct 21 19:30:19 UTC 2009


Thanks, scribu. Yes, the simple use of the get_post_ancestors()
outside any functions (in my theme's functions.php) works fine.

I'm out of look contacting the plugin author - it's me! I mentioned
Justin Tadlock's Members plugin as background to explain the
unorthodox capability referenced in my code.

FYI I'm basing my plugin on this:
http://pressography.com/plugin_template.txt  Seems generally solid.
The function I posted is a method of the plugin class.

Steve


More information about the wp-hackers mailing list