Inspired by a post on this forum...
Hi.
I was inspired by a post on this forum, being able to show something different based on a certain page: Code:
<?php if ( is_page('A_PAGE') ) { ?> Code:
<?php if ( is_page('A_PAGE') ) { ?> |
You should use an IF/ELSE combination
if (x = a) {do something;} elseif (x = 'b') {do something else;} elseif (x = 'c') {do something else;} else {do the default thing;} you can find the exact syntax via google |
I'm not that expert with PHP, but i do understand something about it.
Do you happen to have a example code of what i posted above? |
Anyone? :confused:
|
did you try something? if so what is the code you tried?
|
All i have is the above code, from which was inspired on some topic here.
I dont know how exactly, but i'm trying to work with ELSE state, like if a page is not this then do that, i need this to show different headers each page. Does anyone know the ideal sollution? |
I gave you some code, did you try looking up the syntax? try 'php if w3schools' in a google search
|
All times are GMT -6. The time now is 12:50 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.