Forum Moderators: coopster

Message Too Old, No Replies

Google and Dynamic page tiles.

Not displaying in googlr serps.

         

ski442

4:55 pm on Aug 15, 2009 (gmt 0)

10+ Year Member



Hi Guys.
Googlr serps is not showing my dynamic page titles.
I am using this code.
<title><? echo $Stitle ?> - <? echo $Sstockcode?> - <? echo $SITEname?></title>

All info pulled from DB shows on all the pages on my site, but the strange thing here is that google picks out this <? echo $SITEname ?> from the code above.

If i view source all the info is there, so does Google not allow/like dynamic titles?
My site is ecomerce with about 7k products all in a db with a title field.
All info most welcome.
Thanks
ski

Nutter

9:26 pm on Aug 15, 2009 (gmt 0)

10+ Year Member



Looks like your server isn't parsing the PHP. Best guess is it's not setup to use short tags <? . Switch 'em over to <?php and see if that helps.

penders

10:59 am on Aug 16, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If i view source all the info is there, so does Google not allow/like dynamic titles?

Google should be seeing exactly what you see when you view source!? Unless you are cloaking [webmasterworld.com] your site and checking for the Googlebot?!

Or may be... this code is in your template which isn't parsed by PHP (because it might have a .tpl extension?) unless it is viewed through your template engine? And Google has somehow found your templates directory?!

ski442

3:43 pm on Aug 16, 2009 (gmt 0)

10+ Year Member



Thanks for your replys.

Nutter, I have just changed the short tags over to <?php so i guess i will have to wait a while to see if this is the problem.

Penders, My site is not cloaked (i hope) and I do use 3 templates, which are header, Navigation, Footer, but i have built these use a php extension and calling through an include, which i hope is the normal way to do it.

I thank you both for your time and advice and will post back if any changes, or no changes.

If you think of any other reason please post.
Thanks
Ski442

penders

4:15 pm on Aug 16, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...I do use 3 templates, which are header, Navigation, Footer, but i have built these use a php extension and calling through an include, which i hope is the normal way to do it.

That should be OK.