Why does `get_permalink()` produces an add. DB request without $post->filter? April 12, 2022 by Tarik Billa My workaround for this problem: unset( $post->filter ); $url = get_permalink( $post );