Last active
January 10, 2019 15:38
-
-
Save neverything/631bf87f886a869552af2061ba6864a2 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
# Assuming you have polylang for translations, get the language you want to query: | |
wp term list language | |
# Use the language term slug for and --language as it's the taxonomy: | |
wp post list --post_type=post,page --lang=de --format=ids | |
# Pipe them so they are comma seperated | |
wp post list --post_type=post,page --lang=de --format=ids | tr " " "," |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment