Building a WordPress developer portfolio can be done by showcasing your work on personal projects, contributing to open-source projects, and completing freelance projects. Be sure to include examples of your work and highlight your skills and accomplishments.