Created
May 8, 2023 16:58
-
-
Save digisavvy/4cbd943d8106e5bfdd6e9ad5410a43da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM wp_postmeta | |
WHERE post_id = {your_post_id} | |
AND post_id IN (SELECT ID FROM wp_posts WHERE post_type = '{your_posttype}'); | |
With the above query, replace {your_post_id} and {your_posttype} with the appropriate post ID and posttype. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment