fixed permalink in _get_posts