Nishanth Nair
Nishanth Nair

Reputation: 2965

List of Categories in a feed

I am building a mobile app for my wordpress site. I am planning to read the RSS feed from the website and display it using the mobile app. For this first I need a list of categories to be displayed on the home page and when the user selects a category, the posts in the category is displayed. I know how to get category specific RSS feed, but couldn't find a way so that I can get a list of all categories available on the website. Are there any plugins available which does this?

Any help will will be appreciated!

Upvotes: 1

Views: 949

Answers (1)

Teemu Tapanila
Teemu Tapanila

Reputation: 1275

I personally prefer JSON over RSS feed.

To enable Wordpress output JSON just install this plugin

Then you can use it to browse categories and then posts on categories. For example on my own blog:

Categories

http://www.tapanila.net/api/get_category_index/

Posts from category Index 1

http://www.tapanila.net/api/get_category_posts?category_id=1

Whole documentation

Upvotes: 1

Related Questions