2011-12-19, 03:23:00
alvares Wrote:Carlos Wrote:Code:<?php
if (return_page_slug()=='index') {
// your code here ...
}
?>
Ok. Thanks Carlos.
I put the proposed code for you but could not, within the content of the condition is not rendering.
my code looks like this:
Code:<?php
if (return_page_slug()=='index') {
<div class="coda-slider preload" id="coda-slider-1">
<?php include("index.php");?>
<?php include("index.php?id=page2");?>
<?php include("index.php?id=page3");?>
}
else {
get_page_content();
}
?>
Any other tips to make it work?
try like this :
Code:
<?php
if (return_page_slug()=='index') {
echo '<div class="coda-slider preload" id="coda-slider-1">';
include("index.php");
include("index.php?id=page2");
include("index.php?id=page3");
}
else {
get_page_content();
}
?>