Skip to content

Tag: if-statement

WordPress IF ELSEIF and ELSE Statement

Can someone explain why this does not work? Basically if not the home page or a page with ID 105 show the contact form, else if it is the home page show ‘no side bar’ else for everything else show ‘different side bar’ – it doesnt work as the home page still shows the ‘diffe…

one line if statement in php

I’d like to to some thing similar to javascripts var foo = true; foo && doSometing(); but this doesnt seem to work in php. I’m trying to add a class to a label if a condition is met …