Web Design Forum  
 
Go Back   Web Design Forum > Web Software > Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-03-2012, 12:26 AM   #1
New Member
 
Join Date: Jan 2012
Posts: 3
Default Wordpress php meta data and title

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.
craigtheartist is offline   Reply With Quote


Old 01-03-2012, 03:19 PM   #2
Bronze Member
 
Janja's Avatar
 
Join Date: Jul 2011
Location: Vista, CA
Posts: 65
Send a message via MSN to Janja Send a message via Skype™ to Janja
Default

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.
__________________
JANJAWATSON
www.jewel-webdesign.com
Janja is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:09 AM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.