Make WordPress Core

Opened 4 years ago

Last modified 6 months ago

#49708 new feature request

Add a new function get_page_by_guid

Reported by: killua99's profile killua99 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:


We have two different functions to get a post base from another field rather than ID get_page_by_path and get_page_by_title. When working with RESTful API working with unique identifier could be more handy than auto incremental or a path that could change.

I propose to build a function named get_page_by_guid and help developers to search a Post more accurate with guid.

Change History (1)

This ticket was mentioned in PR #203 on WordPress/wordpress-develop by killua99.

4 years ago

Hi there! Thanks for contributing to WordPress!

Pull Requests in this GitHub repository must be linked to a ticket in the WordPress Core Trac instance (, and are only used for code review. No pull requests will be merged on GitHub.

See the WordPress Handbook page on using PRs for Code Review more information:

If this is your first time contributing, you may also find reviewing these guides first to be helpful:


New function get_post_by_guid

Trac ticket:

Note: See TracTickets for help on using tickets.