Wordpress php meta data and title

Discussion in 'Programming' started by craigtheartist, Jan 3, 2012.

to remove all ads.
  1. craigtheartist

    craigtheartist New Member

    I want to use some php code for my meta data and title.
    Basically if the page is a blog post I want it to automatically pull the post title as the meta title of the post, and for the meta description to automatically pull the content. Both limited to a certain amount of characters. Title limited to 60, content (meta description) limited to 160.

    Anyone know how to do this? Also would be nice to include all the pages in an if/else statement. i.e. if -home use this as meta data, if-category use this as meta data, if-post use this as meta data....so on and so fourth.
  2. Janja

    Janja New Member

    I use the seo plugin by Yoast. You can designate the array or just enter in all the meta data for each post, page etc individually.

Share This Page