Hi,
In titles for example if I want:
order = ctr and page is 1
<title> Latest Videos </title>
Page after 1
<Title> Latest Videos Page 2 </title>
basically don't want to put the word and number for Page 1, how do I do this?
Titles question
Re: Titles question
if ($_GET['page'] > 1) {
show title page ...
} else {
show title
}
show title page ...
} else {
show title
}
Don't forget to run script update
Re: Titles question
What do I add in this code to make it work:
<?php if ($_GET['order'] == 'ctr') {?>
<title>Site order by CTR </title>
<?php } elseif ($_GET['order'] == 'date') { ?>
<title>Site order by date </title>
<?php } else { ?>
<title>Default order (default = by ctr ) </title>
<?php } ?>
<?php if ($_GET['order'] == 'ctr') {?>
<title>Site order by CTR </title>
<?php } elseif ($_GET['order'] == 'date') { ?>
<title>Site order by date </title>
<?php } else { ?>
<title>Default order (default = by ctr ) </title>
<?php } ?>
Re: Titles question
I mean how do I add the ($_GET['page'] > 1) within this code?
Re: Titles question
replace
<title>Site order by CTR </title>
with the example code
<title>Site order by CTR </title>
with the example code
Don't forget to run script update
Re: Titles question
I was trying but getting syntax errors, can you please give it to me for 1 part, remaining I will figure out.
Re: Titles question
I figured it out, Thanks