get_post_ancestors returns empty

use:

$ancestors = get_ancestors($id,'page');

get_ancestors()

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)