Forums

Meta Data auto fill with page content (1 post)

  1. craigthegraphicartist
    Member
    Posted 5 months ago #

    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.

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 5 months ago by craigthegraphicartist
  • This topic is not resolved
  • WordPress version: 3.3