Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Build your WordPress page fast and clean

292 views

Published on

Short introduction about way of building WordPress based website with Timber and Advanced Custom Fields (ACF) plugins

Published in: Software
  • Be the first to comment

  • Be the first to like this

Build your WordPress page fast and clean

  1. 1. Jevgēnijs Cibankovs
  2. 2. Situations • Have custom page design • Non WP, HTML template • Easy to use adminstration • Clean code
  3. 3. How to get those custom fields?
  4. 4. Install Advanced Custom Fields plugin (ACF) • Simple and intuitive custom fields • Field group, fields and location rules • 20 field types • API
  5. 5. Building Theme. Outputing data
  6. 6. DO YOU LIKE THIS?
  7. 7. Install Timber plugin • Library for building themes • DRY and MVC principles • Don’t repeat yourself • Model–View–Controller • Object-oriented Posts, Terms, Users and More • Twig Template Engine
  8. 8. Timber starter theme
  9. 9. For newbies
  10. 10. Templating
  11. 11. Home page Twig template • Put page HTML in content block
  12. 12. Use partials!
  13. 13. Include partials!
  14. 14. Most common thing in WP blog?
  15. 15. Get posts
  16. 16. Extend timber!
  17. 17. Image and content manipulations
  18. 18. Outputing posts
  19. 19. What next? • Learn ACF • http://www.advancedcustomfields.com/ • Learn Timber • http://upstatement.com/timber/ • https://github.com/jarednova/timber • Build your page!
  20. 20. Questions?
  21. 21. Thank You!

×