Created
August 31, 2018 13:18
-
-
Save bigandy/17a613cdac7fbfd313c851d111c8fd22 to your computer and use it in GitHub Desktop.
WordPress Get list of post guids for template type with SQL
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 | |
posts.guid | |
FROM wp_pswe_posts AS posts | |
JOIN wp_pswe_postmeta AS template ON posts.ID = template.post_id | |
WHERE template.meta_key='_wp_page_template' | |
AND template.meta_value='templates/vs-page-v4.php' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment