SlideShare a Scribd company logo
Conditional Love
Using WordPress Conditional Tags to
Write More Effective Themes
WordCamp Jacksonville 2016
@cwpnolen @emagineusa#wcjax
@cwpnolen @emagineusa#wcjax
Who Am I?
Christian Nolen
Technical Director for emagine
WordPress Developer
@cwpnolen
@cwpnolen @emagineusa#wcjax
We’re Hiring
http://www.emagine.com/careers/
@cwpnolen @emagineusa#wcjax
@cwpnolen @emagineusa#wcjax
All Developers 

are Lazy
@cwpnolen @emagineusa#wcjax
@*#&-%*!
@cwpnolen @emagineusa#wcjax
@cwpnolen @emagineusa#wcjax
can be used in your Template files to
change what content is displayed and
how that content is displayed on a
particular page depending on what
conditions that page matches
CONDITIONAL TAGS
@cwpnolen @emagineusa#wcjax
1. the state in which something exists
CONDITION
(kən-ˈdi-shən)
noun
2. a state of being
@cwpnolen @emagineusa#wcjax
I JUST DROPPED IN
To See What Condition My Condition Was In
WordPress
@cwpnolen @emagineusa#wcjax
@cwpnolen @emagineusa#wcjax
1. the state in which something exists
CONDITION
(kən-ˈdi-shən)
noun
2. a state of being
@cwpnolen @emagineusa#wcjax
Are You Hungry?
@cwpnolen @emagineusa#wcjax
Are You Tired?
@cwpnolen @emagineusa#wcjax
Are You Sad?
@cwpnolen @emagineusa#wcjax
Are You Tired?

or ( || )

Is it Morning?
@cwpnolen @emagineusa#wcjax
Are You Drunk?
and (&&)
Do You Feel Sick?
@cwpnolen @emagineusa#wcjax
allow you to ask one or many yes/no
(true/false) questions to WordPress
for the purpose of changing content,
presentation or functionality
CONDITIONAL TAGS
@cwpnolen @emagineusa#wcjax
Template Hierarchy
https://developer.wordpress.org/themes/basics/template-hierarchy/
@cwpnolen @emagineusa#wcjax
Title: About Us

Slug: about-us

Post ID: 28
Example Page
@cwpnolen @emagineusa#wcjax
tmpl-about-us.php
page-about-us.php
page-28.php
page.php
singular.php
index.php
@cwpnolen @emagineusa#wcjax
Why?
@cwpnolen @emagineusa#wcjax
We don’t want this either
@cwpnolen @emagineusa#wcjax
Consolidate your templates by 

major functional or design requirements
@cwpnolen @emagineusa#wcjax
Common Usage
@cwpnolen @emagineusa#wcjax
is_home()
is_front_page()
@cwpnolen @emagineusa#wcjax
is_home() / is_front_page()
if ( is_home() ) : 

// Load blog listing template
get_template_part( 'partials', 'blog-posts' ); 

endif;
if ( is_front_page() ) : 

// Load static home page stylesheet and javascript

wp_enqueue_style( 'my-registered—home-css' );
wp_enqueue_script( 'my-registered—home-js' ); 

endif;
@cwpnolen @emagineusa#wcjax
is_category()
Parameters: Category ID, Name or Slug
@cwpnolen @emagineusa#wcjax
is_category()
if ( is_category() ) : 

// Get Category Data
$category = get_category( get_query_var( 'cat' ) ); 

endif;
<?php if ( is_category( 'web-development' ) ) : ?>

<!—- A Geeky Image —->
<img src="http://goo.gl/8rqmrJ" alt="Nerd Image" /> 

<php endif; ?>
@cwpnolen @emagineusa#wcjax
is_active_sidebar()
Parameters: Name or ID
(required)
@cwpnolen @emagineusa#wcjax
is_active_sidebar()
if ( is_active_sidebar( 'call-to-actions' ) ) : 

echo '<aside class="widgets">';
dynamic_sidebar( 'call-to-actions' );

echo '</aside>'; 

endif;
@cwpnolen @emagineusa#wcjax
is_single()
Parameters: Post ID, Title or Slug
@cwpnolen @emagineusa#wcjax
is_single()
if ( is_single( '28' ) ) : 

// Awesome functionality 

// being conditionally loaded… poorly

endif;
@cwpnolen @emagineusa#wcjax
More Common Uses
has_post_thumbnail()
is_page()
is_admin()
has_excerpt()
is_author()
is_multisite()
@cwpnolen @emagineusa#wcjax
Real World Applications
@cwpnolen @emagineusa#wcjax
All Pages on Your Client Site
Landing Page
@cwpnolen @emagineusa#wcjax
get_header( 'landing-page' );
@cwpnolen @emagineusa#wcjax
is_page_template()
Parameter: Template Name
@cwpnolen @emagineusa#wcjax
is_page_template()
if ( is_page_template( 'tmpl-landing-page.php' ) ) : 

// Get template partial for Landing Page header
get_template_part( 'partials', 'header-links-lp' );

else :
// Get default header links
get_template_part( 'partials', 'header-links-default' );
endif;
@cwpnolen @emagineusa#wcjax
@cwpnolen @emagineusa#wcjax
@cwpnolen @emagineusa#wcjax
single-{post-type}-{slug}.php
single-{post-type}.php
single.php
singular.php
index.php
@cwpnolen @emagineusa#wcjax
Posts
single-{post-type}-{slug}.php
single-{post-type}.php
single.php
singular.php
index.php
Pages
tmpl-about-us.php
page-about-us.php
page-28.php
page.php
singular.php
index.php
@cwpnolen @emagineusa#wcjax
is_singular()
Parameter: Post Type Slug
@cwpnolen @emagineusa#wcjax
is_singular()
if ( is_single() || is_page() || is_attachment() )
if ( is_singular() )
=
@cwpnolen @emagineusa#wcjax
<article>
<?php
if ( is_singular( 'post' ) ) :
// Get blog date, author and categories

get_template_part( 'partials/blog', 'meta' );
endif;
the_content();
?>
</article>
is_singular()
@cwpnolen @emagineusa#wcjax
is_404()
@cwpnolen @emagineusa#wcjax
while ( have_posts() ) : the_post();
the_content();
endwhile;
if ( is_404() ) :
// The page does not exist
echo 'This isn’t the page you’re looking for.’;
endif;
is_404()
@cwpnolen @emagineusa#wcjax
@cwpnolen @emagineusa#wcjax
Make Your Own 

Conditional Tag
@cwpnolen @emagineusa#wcjax
function is_subpage() {
global $post;
if ( is_page() && $post->post_parent ) :
return true;
else :
return false;
endif;
}
@cwpnolen @emagineusa#wcjax
Extend WordPress
Functionality
@cwpnolen @emagineusa#wcjax
add_filter( 'body_class', 'add_body_classes' );
function add_body_classes( $classes ) {
return $classes;
}
if ( !is_front_page() )
$classes[] = 'interior';
if ( is_active_sidebar( 'call-to-actions' )
$classes[] = 'has-callouts';
if ( is_subpage() )
$classes[] = ‘is-subpage';
@cwpnolen @emagineusa#wcjax
Additional Resources
• https://codex.wordpress.org/Conditional_Tags
• https://developer.wordpress.org/themes/basics/conditional-tags/
• http://code.tutsplus.com/articles/php-for-wordpress-mastering-
conditional-statements-and-tags--wp-22725
• https://docs.woothemes.com/document/conditional-tags/
• https://codex.bbpress.org/bbpress-conditional-tags/
• https://codex.buddypress.org/developer/template-tag-reference/
#is_-functions
@cwpnolen @emagineusa#wcjax
Thank You
Christian Nolen
Technical Director for emagine
@cwpnolen

More Related Content

What's hot

Plugging into plugins
Plugging into pluginsPlugging into plugins
Plugging into pluginsJosh Harrison
 
Tek 2013 - Building Web Apps from a New Angle with AngularJS
Tek 2013 - Building Web Apps from a New Angle with AngularJSTek 2013 - Building Web Apps from a New Angle with AngularJS
Tek 2013 - Building Web Apps from a New Angle with AngularJSPablo Godel
 
Continuous Visual Integration - RailsConf 2016 - Mike Fotinakis - Percy.io
Continuous Visual Integration - RailsConf 2016 - Mike Fotinakis - Percy.ioContinuous Visual Integration - RailsConf 2016 - Mike Fotinakis - Percy.io
Continuous Visual Integration - RailsConf 2016 - Mike Fotinakis - Percy.ioMike Fotinakis
 
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...Julie Anne
 
Leveraging Continuous Integration For Fun And Profit!
Leveraging Continuous Integration For Fun And Profit!Leveraging Continuous Integration For Fun And Profit!
Leveraging Continuous Integration For Fun And Profit!Jess Chadwick
 
Creating Yahoo Mobile Widgets
Creating Yahoo Mobile WidgetsCreating Yahoo Mobile Widgets
Creating Yahoo Mobile WidgetsRicardo Varela
 
Script type
Script typeScript type
Script typejjadsan
 
Django CMS & Integrating it with django shop
Django CMS & Integrating it with django shopDjango CMS & Integrating it with django shop
Django CMS & Integrating it with django shopMindfire Solutions
 
Future of Web Development
Future of Web DevelopmentFuture of Web Development
Future of Web DevelopmentZeno Rocha
 
5 Tips for Writing Better JavaScript
5 Tips for Writing Better JavaScript5 Tips for Writing Better JavaScript
5 Tips for Writing Better JavaScriptNael El Shawwa
 
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...Nicholas Dionysopoulos
 
Widgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
Widgets: Making Your Site Great and Letting Others Help - WordCamp VictoriaWidgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
Widgets: Making Your Site Great and Letting Others Help - WordCamp VictoriaJeff Richards
 
Power of mu plugins
Power of mu pluginsPower of mu plugins
Power of mu pluginsMikel King
 
BOOM Performance
BOOM PerformanceBOOM Performance
BOOM Performancedapulse
 
Front End Development - Beyond Javascript (Robin Cannon)
Front End Development - Beyond Javascript (Robin Cannon)Front End Development - Beyond Javascript (Robin Cannon)
Front End Development - Beyond Javascript (Robin Cannon)Future Insights
 
Intro To Django
Intro To DjangoIntro To Django
Intro To DjangoUdi Bauman
 
ARTDM 170, Week 16: Publishing
ARTDM 170, Week 16: PublishingARTDM 170, Week 16: Publishing
ARTDM 170, Week 16: PublishingGilbert Guerrero
 
Plugins on word press
Plugins on word pressPlugins on word press
Plugins on word pressKoombea
 

What's hot (19)

Plugging into plugins
Plugging into pluginsPlugging into plugins
Plugging into plugins
 
Tek 2013 - Building Web Apps from a New Angle with AngularJS
Tek 2013 - Building Web Apps from a New Angle with AngularJSTek 2013 - Building Web Apps from a New Angle with AngularJS
Tek 2013 - Building Web Apps from a New Angle with AngularJS
 
Continuous Visual Integration - RailsConf 2016 - Mike Fotinakis - Percy.io
Continuous Visual Integration - RailsConf 2016 - Mike Fotinakis - Percy.ioContinuous Visual Integration - RailsConf 2016 - Mike Fotinakis - Percy.io
Continuous Visual Integration - RailsConf 2016 - Mike Fotinakis - Percy.io
 
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...
 
Leveraging Continuous Integration For Fun And Profit!
Leveraging Continuous Integration For Fun And Profit!Leveraging Continuous Integration For Fun And Profit!
Leveraging Continuous Integration For Fun And Profit!
 
Creating Yahoo Mobile Widgets
Creating Yahoo Mobile WidgetsCreating Yahoo Mobile Widgets
Creating Yahoo Mobile Widgets
 
Script type
Script typeScript type
Script type
 
Django CMS & Integrating it with django shop
Django CMS & Integrating it with django shopDjango CMS & Integrating it with django shop
Django CMS & Integrating it with django shop
 
Future of Web Development
Future of Web DevelopmentFuture of Web Development
Future of Web Development
 
_s v. genesis
_s v. genesis_s v. genesis
_s v. genesis
 
5 Tips for Writing Better JavaScript
5 Tips for Writing Better JavaScript5 Tips for Writing Better JavaScript
5 Tips for Writing Better JavaScript
 
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
 
Widgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
Widgets: Making Your Site Great and Letting Others Help - WordCamp VictoriaWidgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
Widgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
 
Power of mu plugins
Power of mu pluginsPower of mu plugins
Power of mu plugins
 
BOOM Performance
BOOM PerformanceBOOM Performance
BOOM Performance
 
Front End Development - Beyond Javascript (Robin Cannon)
Front End Development - Beyond Javascript (Robin Cannon)Front End Development - Beyond Javascript (Robin Cannon)
Front End Development - Beyond Javascript (Robin Cannon)
 
Intro To Django
Intro To DjangoIntro To Django
Intro To Django
 
ARTDM 170, Week 16: Publishing
ARTDM 170, Week 16: PublishingARTDM 170, Week 16: Publishing
ARTDM 170, Week 16: Publishing
 
Plugins on word press
Plugins on word pressPlugins on word press
Plugins on word press
 

Viewers also liked

All Things WordPress: Getting the Most Out of Your Email Marketing
All Things WordPress: Getting the Most Out of Your Email MarketingAll Things WordPress: Getting the Most Out of Your Email Marketing
All Things WordPress: Getting the Most Out of Your Email MarketingMickey Mellen
 
April 2016 - Atlanta WordPress Users Group - Child Themes
April 2016 - Atlanta WordPress Users Group - Child ThemesApril 2016 - Atlanta WordPress Users Group - Child Themes
April 2016 - Atlanta WordPress Users Group - Child ThemesEric Sembrat
 
Creating WordPress Theme Faster, Smarter & Without Swearing
Creating WordPress Theme Faster, Smarter & Without SwearingCreating WordPress Theme Faster, Smarter & Without Swearing
Creating WordPress Theme Faster, Smarter & Without Swearingmartinwolak
 
WordPress Theme Performance - WP Vienna meetup 8.6.2016
WordPress Theme Performance - WP Vienna meetup 8.6.2016WordPress Theme Performance - WP Vienna meetup 8.6.2016
WordPress Theme Performance - WP Vienna meetup 8.6.2016jancbeck
 
FinCon15 - You're Doing It Wrong; 13 Mistakes WordPress Users Make
FinCon15 - You're Doing It Wrong; 13 Mistakes WordPress Users MakeFinCon15 - You're Doing It Wrong; 13 Mistakes WordPress Users Make
FinCon15 - You're Doing It Wrong; 13 Mistakes WordPress Users MakeDustin Hartzler
 
Customizing WordPress Themes / Child Themes - WordCamp Savannah 2010
Customizing WordPress Themes / Child Themes - WordCamp Savannah 2010Customizing WordPress Themes / Child Themes - WordCamp Savannah 2010
Customizing WordPress Themes / Child Themes - WordCamp Savannah 2010Sara Cannon
 
EndLess Possibilities With Wordpress
EndLess Possibilities With WordpressEndLess Possibilities With Wordpress
EndLess Possibilities With WordpressImanuel Gittens
 
Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016David Brattoli
 
Customizing word press themes for san diego wordpress user group
Customizing word press themes for san diego wordpress user groupCustomizing word press themes for san diego wordpress user group
Customizing word press themes for san diego wordpress user groupPhelan Riessen
 
The Way to Theme Enlightenment
The Way to Theme EnlightenmentThe Way to Theme Enlightenment
The Way to Theme EnlightenmentAmanda Giles
 
Business Opportunities in WordPress
Business Opportunities in WordPressBusiness Opportunities in WordPress
Business Opportunities in WordPressJames Dalman
 
No More Cowboy Coding: Modern WordPress Development Workflow That Scales
No More Cowboy Coding: Modern WordPress Development Workflow That ScalesNo More Cowboy Coding: Modern WordPress Development Workflow That Scales
No More Cowboy Coding: Modern WordPress Development Workflow That ScalesTom Howard
 
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015topher1kenobe
 
What's new in WordPress 4.7
What's new in WordPress 4.7What's new in WordPress 4.7
What's new in WordPress 4.7Steven Watts
 
How a project is born. Intro to Discovery Phase
How a project is born. Intro to Discovery Phase How a project is born. Intro to Discovery Phase
How a project is born. Intro to Discovery Phase Kate Semizhon
 
Discover phase showcase template
Discover phase showcase templateDiscover phase showcase template
Discover phase showcase templateYianni Achele
 
The Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child ThemesThe Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child ThemesAnthony Hortin
 
Wordpress: Make Your Site Impressively Beautiful
Wordpress: Make Your Site Impressively BeautifulWordpress: Make Your Site Impressively Beautiful
Wordpress: Make Your Site Impressively BeautifulMafel Gorne
 

Viewers also liked (20)

All Things WordPress: Getting the Most Out of Your Email Marketing
All Things WordPress: Getting the Most Out of Your Email MarketingAll Things WordPress: Getting the Most Out of Your Email Marketing
All Things WordPress: Getting the Most Out of Your Email Marketing
 
April 2016 - Atlanta WordPress Users Group - Child Themes
April 2016 - Atlanta WordPress Users Group - Child ThemesApril 2016 - Atlanta WordPress Users Group - Child Themes
April 2016 - Atlanta WordPress Users Group - Child Themes
 
Creating WordPress Theme Faster, Smarter & Without Swearing
Creating WordPress Theme Faster, Smarter & Without SwearingCreating WordPress Theme Faster, Smarter & Without Swearing
Creating WordPress Theme Faster, Smarter & Without Swearing
 
WordPress Theme Performance - WP Vienna meetup 8.6.2016
WordPress Theme Performance - WP Vienna meetup 8.6.2016WordPress Theme Performance - WP Vienna meetup 8.6.2016
WordPress Theme Performance - WP Vienna meetup 8.6.2016
 
FinCon15 - You're Doing It Wrong; 13 Mistakes WordPress Users Make
FinCon15 - You're Doing It Wrong; 13 Mistakes WordPress Users MakeFinCon15 - You're Doing It Wrong; 13 Mistakes WordPress Users Make
FinCon15 - You're Doing It Wrong; 13 Mistakes WordPress Users Make
 
Customizing WordPress Themes / Child Themes - WordCamp Savannah 2010
Customizing WordPress Themes / Child Themes - WordCamp Savannah 2010Customizing WordPress Themes / Child Themes - WordCamp Savannah 2010
Customizing WordPress Themes / Child Themes - WordCamp Savannah 2010
 
EndLess Possibilities With Wordpress
EndLess Possibilities With WordpressEndLess Possibilities With Wordpress
EndLess Possibilities With Wordpress
 
Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016
 
Customizing word press themes for san diego wordpress user group
Customizing word press themes for san diego wordpress user groupCustomizing word press themes for san diego wordpress user group
Customizing word press themes for san diego wordpress user group
 
The Way to Theme Enlightenment
The Way to Theme EnlightenmentThe Way to Theme Enlightenment
The Way to Theme Enlightenment
 
Business Opportunities in WordPress
Business Opportunities in WordPressBusiness Opportunities in WordPress
Business Opportunities in WordPress
 
HTML/CSS for WordPress
HTML/CSS for WordPressHTML/CSS for WordPress
HTML/CSS for WordPress
 
No More Cowboy Coding: Modern WordPress Development Workflow That Scales
No More Cowboy Coding: Modern WordPress Development Workflow That ScalesNo More Cowboy Coding: Modern WordPress Development Workflow That Scales
No More Cowboy Coding: Modern WordPress Development Workflow That Scales
 
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
 
What's new in WordPress 4.7
What's new in WordPress 4.7What's new in WordPress 4.7
What's new in WordPress 4.7
 
How a project is born. Intro to Discovery Phase
How a project is born. Intro to Discovery Phase How a project is born. Intro to Discovery Phase
How a project is born. Intro to Discovery Phase
 
Discover phase showcase template
Discover phase showcase templateDiscover phase showcase template
Discover phase showcase template
 
The Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child ThemesThe Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child Themes
 
Wordpress: Make Your Site Impressively Beautiful
Wordpress: Make Your Site Impressively BeautifulWordpress: Make Your Site Impressively Beautiful
Wordpress: Make Your Site Impressively Beautiful
 
Customize it.
Customize it.Customize it.
Customize it.
 

Similar to Conditional Love - Using WordPress Conditional Tags to Write More Effective Themes

Getting Started with WP-CLI
Getting Started with WP-CLIGetting Started with WP-CLI
Getting Started with WP-CLIChristian Nolen
 
Plone Interactivity
Plone InteractivityPlone Interactivity
Plone InteractivityEric Steele
 
Word press development for non developers
Word press development for non developers Word press development for non developers
Word press development for non developers Jessica C. Gardner
 
Private slideshow
Private slideshowPrivate slideshow
Private slideshowsblackman
 
WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010Brendan Sera-Shriar
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web componentsMarc Bächinger
 
Widget Summit 2008
Widget Summit 2008Widget Summit 2008
Widget Summit 2008Volkan Unsal
 
The Structure of Web Code: A Case For Polymer, November 1, 2014
The Structure of Web Code: A Case For Polymer, November 1, 2014The Structure of Web Code: A Case For Polymer, November 1, 2014
The Structure of Web Code: A Case For Polymer, November 1, 2014Tommie Gannert
 
Implementing Google Analytics in WordPress
Implementing Google Analytics in WordPressImplementing Google Analytics in WordPress
Implementing Google Analytics in WordPressJulie Kosbab
 
Sara Harkousse - "Web Components: It's all rainbows and unicorns! Is it?"
Sara Harkousse - "Web Components: It's all rainbows and unicorns! Is it?"Sara Harkousse - "Web Components: It's all rainbows and unicorns! Is it?"
Sara Harkousse - "Web Components: It's all rainbows and unicorns! Is it?"IT Event
 
Hackazon realistic e-commerce Hack platform
Hackazon realistic e-commerce Hack platformHackazon realistic e-commerce Hack platform
Hackazon realistic e-commerce Hack platformIhor Uzhvenko
 
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp OrlandoYou're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp OrlandoChris Scott
 
Guia de Sobrevivência JS no mundo Open Source
Guia de Sobrevivência JS no mundo Open SourceGuia de Sobrevivência JS no mundo Open Source
Guia de Sobrevivência JS no mundo Open SourceLeonardo Balter
 

Similar to Conditional Love - Using WordPress Conditional Tags to Write More Effective Themes (20)

Getting Started with WP-CLI
Getting Started with WP-CLIGetting Started with WP-CLI
Getting Started with WP-CLI
 
Seven deadly theming sins
Seven deadly theming sinsSeven deadly theming sins
Seven deadly theming sins
 
Plone Interactivity
Plone InteractivityPlone Interactivity
Plone Interactivity
 
WCLA12 JavaScript
WCLA12 JavaScriptWCLA12 JavaScript
WCLA12 JavaScript
 
Word press development for non developers
Word press development for non developers Word press development for non developers
Word press development for non developers
 
Private slideshow
Private slideshowPrivate slideshow
Private slideshow
 
Going web native
Going web nativeGoing web native
Going web native
 
Intro to jQuery
Intro to jQueryIntro to jQuery
Intro to jQuery
 
WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web components
 
Widget Summit 2008
Widget Summit 2008Widget Summit 2008
Widget Summit 2008
 
The Structure of Web Code: A Case For Polymer, November 1, 2014
The Structure of Web Code: A Case For Polymer, November 1, 2014The Structure of Web Code: A Case For Polymer, November 1, 2014
The Structure of Web Code: A Case For Polymer, November 1, 2014
 
Implementing Google Analytics in WordPress
Implementing Google Analytics in WordPressImplementing Google Analytics in WordPress
Implementing Google Analytics in WordPress
 
Upload[1]
Upload[1]Upload[1]
Upload[1]
 
Oscon 20080724
Oscon 20080724Oscon 20080724
Oscon 20080724
 
20110820 header new style
20110820 header new style20110820 header new style
20110820 header new style
 
Sara Harkousse - "Web Components: It's all rainbows and unicorns! Is it?"
Sara Harkousse - "Web Components: It's all rainbows and unicorns! Is it?"Sara Harkousse - "Web Components: It's all rainbows and unicorns! Is it?"
Sara Harkousse - "Web Components: It's all rainbows and unicorns! Is it?"
 
Hackazon realistic e-commerce Hack platform
Hackazon realistic e-commerce Hack platformHackazon realistic e-commerce Hack platform
Hackazon realistic e-commerce Hack platform
 
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp OrlandoYou're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp Orlando
 
Guia de Sobrevivência JS no mundo Open Source
Guia de Sobrevivência JS no mundo Open SourceGuia de Sobrevivência JS no mundo Open Source
Guia de Sobrevivência JS no mundo Open Source
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2DianaGray10
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaRTTS
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀DianaGray10
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...Product School
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...Elena Simperl
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesThousandEyes
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationZilliz
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Julian Hyde
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Product School
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaCzechDreamin
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeCzechDreamin
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 

Conditional Love - Using WordPress Conditional Tags to Write More Effective Themes