How to display Feedburner subscription count as plain text via a shortcode in post/page editor of my Wordpress blog?

I would like to create a shortcode like [feedcount] in my wordpress blog to display Feedburner subscription count as plain text on some of my posts/pages. Moreover, I'd prefer in the case that the Feedburner API is not unavailable, the shortcode shows "many other" instead of the count.
How can I do that?

Topic feedburner shortcode subscription Wordpress

Category Web


I wrote a php script for it, is not a wordpress plugin , but is good point to start :)

$fb_id = "Mashable"; // here your id account
$fb_uri = "http://feeds.feedburner.com/~fc/";
$app_uri = "http://feedcounttext.appspot.com/?uri=";
$count_uri = $app_uri.$fb_uri.$fb_id;
$fb_count = fopen($count_uri, "r");
echo fgets($fb_count);
fclose($fb_count);

source code here : https://github.com/salsan/FeedCountText

Require you active FeedCount on your account of FeedBurner

Example

Mashable

http://feedcounttext.appspot.com/FeedContText.php?uri=http://feeds.feedburner.com/~fc/Mashable


As TomJNowell implies, you would achieve this by integrating the Feedburner API with the WordPress Shortcode API in a plugin. However, the Feedburner APIs have been shutdown since October 20, 2012 and this is no longer possible. As Google continues to deprecate support for Feedburner, your best course of action is to pursue alternatives to the service.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.