0

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?

2
  • Are you asking how to create a shortcode, or how to access the feedburner API?
    – Tom J Nowell
    Mar 11, 2014 at 18:52
  • @TomJNowell: Want to know how to access the Feedburner API. Mar 11, 2014 at 20:42

2 Answers 2

2

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.

1

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

2
  • Would be nice if you post the code directly inside your answer were everybody can find it without leaving the post :-) Mar 6, 2015 at 11:06
  • Answers should be more than plain links. They should actually be an answer instead of a route where someone will maybe find an answer. Please help preventing link rot, edit your answer and provide the needed information (even if it's just some bits of code) that helps the OP as well as later visitors to solve their problem here on the site. Thank you.
    – kaiser
    Mar 6, 2015 at 11:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.