Forum

Questions and discussions

meta tags

Marketing, Population, SEO

meta tags

Postby lucy » Mon Jul 11, 2011 11:27 am

Hi,
I am trying to set separate meta tags for home page, category listing and item view (content video). I lost in php.
In inc/header.php there is section begining with:
Code: Select all
//Meta keywords description
$meta_keywords="";
$meta_description="";

my question is: how to determine which of this 3 pages are displayed? I would like to have code like this:
Code: Select all
if($site=="home page"){
  $meta_keywords="bla, bla, bla";
  $meta_description="bla, bla, bla";
  $sname="bla, bla, bla";
}
if($site=="category listing"){
  $meta_keywords="bla, bla, bla";
  $meta_description="bla, bla, bla";
  $sname="bla, bla, bla";
}
if($site=="item video"){//I have videos only
  $meta_keywords="bla, bla, bla";
  $meta_description="bla, bla, bla";
  $sname="bla, bla, bla";
}
lucy
 
Posts: 144
Joined: Mon Apr 12, 2010 2:52 pm

Return to Tips and tricks

Who is online

Users browsing this forum: No registered users and 1 guest

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.