please help me. I dont know How can I do. I need list all posts IDs. export need

1 3 5 6 7 8 9 . . . .

Please help

1 Answer 1


There are lots of ways to get all IDs. Assuming you do want all posts - which include Posts, Pages, Media, Menu Items, custom post types, etc.:


Run a SQL query: SELECT ID FROM wp_posts then export the results to whatever file type you prefer.

  • thanks too much. I try most code but list more details. This is easy and very usefull Dec 3, 2019 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.