How to get post total for each author for blogspot
Wednesday, March 28, 2012
Sometimes, you have a blog with several authors and you might need to keep tract on their total post. So, this is how I do it
I create a simple php file to do that.
$url = "http:///feeds/posts/default?alt=rss&redirect=false&max-results=10000"
$str = file_get_contents($url)
echo "NickName (".substr_count($str, (authorName)').");
echo "NickName2 (".substr_count($str, (authorName2)').");
0 comments:
Post a Comment