Home > CakePHP, Php programming > Set Meta Tags (SEO Tags) in CakePHP

Set Meta Tags (SEO Tags) in CakePHP

Hello Friends,

In my previous post, i show you the way how to set Page Title Tag in CakePHP. But setting Meta keywords and Meta Description is not the same way as Meta Title. .Also Meta Keyword and Meta Description is important part of Search Engine Optimization. Refer to below syntax to set Meta tags in CakePHP.

echo $html->meta(‘keywords’,’enter any meta keyword here’);
//Output <meta name=”keywords” content=”enter any meta keyword here”/>
echo $html->meta(‘description’,’enter any meta description here’);
//Output <meta name=”description” content=”enter any meta description here”/>

If you find any problem in this than let me know by comment.
  1. July 12, 2011 at 10:33 am

    this post helped me !
    thanks bhavin ! 😀

  2. April 28, 2012 at 4:07 pm

    Setting meta descriptions and keywords in the controller are step by step explained in the questionfriends site:

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: