So I'm trying to develop a sidebar for a page template, and I'd like to inject different content depending on which page I am on.
For that reason, I'd like to know what command and what identifier I use to write the if/then statement for WordPress.
I.e:
<?php
if ((thispageis == 'pageidentifier') {
?> iinclude_page(4); <?
}else{
if ((thispageis2 == 'pageidentifier2') {
?> iinclude_page(5);
}
?>
I am using the Improved Include page plugin that outlines the function of iinclude_page();
Does anyone know how I'd go about this? Is there a page identifier already defined by WordPress that I can just determine those values and put them in after I've created said pages?
Thanks