@fabolivar23 #WCBogota
How do frameworks really work
on WordPress?
@fabolivar23 #WCBogota
Hello!
I am Fabian Altahona
@fabolivar23 / Koombea
@fabolivar23 #WCBogota
"Hands up!"
Do you know what a Framework
is?
@fabolivar23 #WCBogota
Do you know what a Framework is?
Architecture
Skeleton
Scheme
Pattern
Structure
Summarizing...
A Framework can be defined as a schema (environment,
architecture, skeleton, pattern, structure) for the
development and / or implementation of an application.
Frameworks are not linked to a specific language.
@fabolivar23 #WCBogota
FRAMEWORKS
Frameworks for WordPress
Advantages.
Speeds up the
development
process.
Allows
collaborative
work.
MVC
pattern.
Good practices and
security.
Good organization of
code and files.
Reuses code.
It's fun!
@fabolivar23 #WCBogota
Disadvantages.
Price
Limitations
Learning curve
+ Abstraction - Performance
Very good so far, but what
Framework should I use in
WordPress?
@fabolivar23 #WCBogota
@fabolivar23 #WCBogota
Differences Between a
Normal Theme and a
Theme
Framework
“
@fabolivar23 #WCBogota
Parent
Theme
WordPress
Core
Basic theme
@fabolivar23 #WCBogota
Parent
Theme
WordPress
Core
Basic theme + child theme support
Child
Theme
@fabolivar23 #WCBogota
Parent
Theme
Child
Theme
Framework
Theme
Advanced Topic
WordPress
Core
@fabolivar23 #WCBogota
Parent
Theme
Child
Theme
Framework
Theme
Advanced Topic
WordPress
Core Hierarchy of Templates
Template Engine for PHP
MVC design pattern
WordPress Customizer API
@fabolivar23 #WCBogota
Hierarchy of templates
WordPress
Core
Framework
@fabolivar23 #WCBogota
@fabolivar23 #WCBogota
Ready! I know
how templates
work in
WordPress :)
Let's go
ahead
@fabolivar23 #WCBogota
MVC design pattern
@fabolivar23 #WCBogota
MVC on WordPress
Custom Post Type UI
@fabolivar23 #WCBogota
MVC on WordPress
Conditional Tags
If / else
MVC on WordPress
Conditional Tags
If / else
@fabolivar23 #WCBogota
MVC on WordPress
The flexible, fast, and
secure template engine
for PHP
@fabolivar23 #WCBogota
Template Engine in WordPress
single.php
single.php
single.twig
Controller
View
Model
Context
@fabolivar23 #WCBogota
Summarizing...
1
2
3
4
To develop templates in WordPress
you must have a clear hierarchy of
templates
Use template engines to separate
HTML from PHP code -> Twig
Potentialize your WordPress using
custom post types and ACF
Follow good practices in PHP there
are many standards that you can
follow for example PSR 1, PSR 2,
PSR3, PSR4. (www.php-fig.org/psr/)
WordPress Customizer API
WordPress Customizer API
http://www.titanframework.net/
https://aristath.github.io/kirki/
Contributors
Web Developers Designers Marketing
Sponsors
Fabian A.
Rhonalf M.
Luis H.
Juan O.
Lorena B.
Shantal E.
Thank you!
@fabolivar23 #WCBogota

How WordPress Frameworks actually work