Page 1 of 1
Titles question
Posted: Thu Jan 24, 2019 1:29 am
by tubeman
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?
Re: Titles question
Posted: Thu Jan 24, 2019 5:02 am
by admin
if ($_GET['page'] > 1) {
show title page ...
} else {
show title
}
Re: Titles question
Posted: Thu Jan 24, 2019 9:17 am
by tubeman
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 } ?>
Re: Titles question
Posted: Thu Jan 24, 2019 9:24 am
by admin
The code looks ok
Re: Titles question
Posted: Thu Jan 24, 2019 9:32 am
by tubeman
I mean how do I add the ($_GET['page'] > 1) within this code?
Re: Titles question
Posted: Thu Jan 24, 2019 10:06 am
by admin
replace
<title>Site order by CTR </title>
with the example code
Re: Titles question
Posted: Thu Jan 24, 2019 11:03 am
by tubeman
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
Posted: Thu Jan 24, 2019 12:44 pm
by tubeman
I figured it out, Thanks
Re: Titles question
Posted: Thu Jan 24, 2019 2:00 pm
by admin
Ok )