Skip to content

Instantly share code, notes, and snippets.

@steroyle
Last active July 1, 2022 14:01
Show Gist options
  • Save steroyle/49e092d862f89967c9d269b176b3bb2f to your computer and use it in GitHub Desktop.
Save steroyle/49e092d862f89967c9d269b176b3bb2f to your computer and use it in GitHub Desktop.
Get a list of WordPress post using a specific ACF Block
SELECT
ID, post_title, post_content, post_name
FROM
wp_posts
WHERE
post_content
LIKE
'%wp:acf/block-name%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment