Category: php
WordPress sitemap maker php script
Posted by admin on Dec.03, 2010, under google, php No Comments
Hello all wordpress lovers and google lovers. All we know that there are many many wordpress plugins to genrate sitemaps. But for some reason we cant install them. So i have come up with one nice solution. I have created script with two file which will generate your wordpress site’s sitemap in less than few seconds.
Just download unzip and open sitemap.php and add your site URL at $site = “http://www.yoursite.com/mapmaker.php Save it and uplaod both files in root of your site and navigate url http://yoursite.com/sitemap.php you done it. Your sitemap.xml will be at root of your site! just submit it from google’s webmaster’s tool.
if you have any questions leave comments.
WordPress tags in meta description
Posted by admin on Nov.08, 2010, under php, wordpress No Comments
This is simple code which will add custom meta description in your wordpress posts. This simple code will add your post tags to your posts meta description.
<meta name=”description” content=”For home page meta description.” />
<?php } elseif (is_single()) { ?>
<meta name=”description” content=”<?php $posttags = get_the_tags(); $count=0; if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ‘, ‘; } } ?>”/>
<?php } ?>
feel free to post any comments for any help or your feedback.













