If you have a #WordPress pages slug (or path if it is a child page) you can use the get_page_by_path() function to return the page object. Another useful but less known WordPress function. #learnWPFunctions https://bit.ly/3HirOhl
bit.lyget_page_by_path() – Function | Developer.WordPress.orgRetrieves a page given its path.
0 reposts4 likes