WordPress

Database

Get data that is a post and revisions.

SELECT * FROM {database} WHERE ID = {ID} OR post_parent = {ID} ORDER BY post_name