Hi,
We want to use the album and image descriptions for the page meta description.
ie:
<meta name="description" content="<?php echo printImageDesc(); ?>" />
<meta name="description" content="<?php echo printAlbumDesc(); ?>" />
Is this the correct method and do we need to format them to remove line breaks etc ?
Many thanks.
Comments
For meta tags you better use the "getBare" functions (see the doc). These already strip html tags etc. from the content to be used in img alt or title tags.
Have used: <meta name="description" content="<?php echo getBareAlbumDesc(); ?>" />
If I view source there is a line break as below,
<meta name="description" content="Photographing birds is not only a challenge but a real pleasure. Gives you a chance to study hehaviour, bird calls
and much more.
You just need lots of patience and a flask of coffee at the ready." />
Is that just whitespace in the text, sorry just need to check.
Pat
Thankyou for your support!
Pat