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

scribu scribu at gmail.com
Wed Oct 21 15:23:17 UTC 2009


>
> Is there any reason that get_post_ancestors() wouldn't work inside a custom
> function?
>

No, there's no reason that I can think of.

Try the code directly, i.e. in functions.php simply write:

var_dump(get_post_ancestors($some_id));

If it's working there, you should probably contact the plugin author, as
it's not an issue with WP Core.


-- 
http://scribu.net


More information about the wp-hackers mailing list