i am trying create html sitemap without plugin. How can i get all parents and his childs ? I want to create something like this

  1. Main page

    • Category 1

      • post 1 of category 1
    • Category 2

  2. Other page
    • Category 1

Your Answer

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

Browse other questions tagged or ask your own question.