Hi David
Google have ranked some of my product feed pages but instead of having content from the page show up as the description, it's showing paths to my directories: (home/public_html/www/****.co.uk/shopping/)
I'm not keen on the world seeing my path directories. :( I don't think its safe.
I was wondering if you knew how I could have the the product's description as the meta description. Failing that, any text using the search keywords/title of the page (anything but the paths to my directories).
Thanks
The results are coming up with these descriptions:
{link saved}
This is the results page with a few of the PT feed products at the bottom
{link saved}
and this is one of the pages which is showing up in that results listing with details
{link saved}
Hi bat,
Viewing the source of the page the error is no longer present, which indicates that it was a transient problem, and just happened to occur whilst your site was being crawled. With the above modification in place meta descriptions should now become the first product descriptions and as soon as the pages are re-crawled the error messages will disappear.
It's generally a good idea if not the default configuration to actually have error messages suppressed on a production server. This can also be done within PHP itself, say at the very top of includes/common.php you could add (after the opening PHP tag):
ini_set('display_errors',0);
Cheers,
David.
--
PriceTapestry.com
Thank you David! Glad its something of nothing.
And thanks for the meta description help.
Hi bat,
Local path names should not be appearing in the HTML output of your product pages so that sounds like a different problem - could you let me know the URL of one of the product pages that is showing your path names and I'll take a look (I'll remove the URL before publishing your post) and from that I should be able to work out why / where they're being included.
With regards to making the first product description become the meta description, yes - that can be done! In products.php, look for the following code at line 52:
$header["meta"]["description"] = translate("Price search results for")." ".htmlentities($q,ENT_QUOTES,$config_charset);
...and REPLACE that with:
$header["meta"]["description"] = htmlentities($product["products"][0]["description"],ENT_QUOTES,$config_charset);
Cheers,
David.
--
PriceTapestry.com