Link to Portfolio page by id instead of name October 14, 2022 by Tarik Billa That’s because get_page_by_id isn’t a function in WordPress. You want get_page.