I have a arbitrary string and want to check if a post with that slug string exists in the site. I tried to find a way to list all slugs, but can't find such a thing. Thanks
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
Do you mean post slug? You can try to make use of |
|||
|
You then have more than enough information to test if a post was returned or not, hope this helps. |
|||
|
|
protected by Community♦ Apr 10 at 12:42
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.