Defining what content shows up based on page type

Quick code to define what content shows up based on page type. I had to have different containers show up depending on page.

The Code

<?php if( is_front_page() ): ?>
<?php elseif( is_page() ): ?>
<?php elseif ( is_single() ): ?>
<?php elseif ( is_home() ): ?>
<?php endif; ?>
Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

Namecheap’s free DYNDNS

Stumbled upon Namecheaps free DYNDNS service this morning, and I can’t be more impressed. All I did was buy a 0.66 cent domain Namecheap Enabled the Dynamic DNS in the Advanced DNS settings: Then added the client to my home media server: Windows: Direct UpdateMac: NC DNS Updater, IP MonitorUnix: DDClient , IPCheckOther: Java Dynamic… Read More

Redirect form after submit

Add the onClick values onClick values *replace f0rm with form, I didn’t want the form to render on this website.