Title: RSS / REST / JSON
Last modified: September 9, 2017

---

# RSS / REST / JSON

 *  Resolved [jomo](https://wordpress.org/support/users/jonathanmoorebcsorg/)
 * (@jonathanmoorebcsorg)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/rss-rest-json/)
 * Is there any standard solution for supporting either RSS feed or REST api for
   Business Directory entries?
 * **Firstly Feeds / RSS (solved)**
    Normally you can simply get an XML representation
   by adding /feed/ to the end of most WordPress links, like: mysite.com/category/
   subcategory/feed/ mysite.com/individual-post-link/feed/ mysite.com/woocommerce-
   shop/product-category/feed/ mysite.com/individual-product-link/feed/
 * This does not work for business directory entries.
    It is possible however to
   get a basic listing via: mysite.com/feed/?post_type=wpbdp_listing
 * However some customization is desirable to add extra information, also
    detail
   requests for an individual item don’t work since requests of the format: mysite.
   com/feed/?p=postid
 * redirect to:
    mysite.com/full-post-url/feed/ which gives 404 error for posts 
   of type wpbdp_listing
 * **WordPress Rest API**
    Is there any option for accessibility from the WordPress
   Rest API? As a starter: mysite.com/wp-json/wp/v2/types/ does not include wpbdp_listing
   as an available post type and I didn’t find anything in the documentation sites
   about this

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/rss-rest-json/#post-9482868)
 * Hi [@jonathanmoorebcsorg](https://wordpress.org/support/users/jonathanmoorebcsorg/),
 * BD does have an RSS feed built into the directory pages (for the list view and
   categories). To get the specific URL for your site, go to the category or list
   view page, click “View Source” from your browser and search on “rss”. You’ll 
   see the embedded URL in there.
 * For our main demo directory, it’s:
 * [https://businessdirectoryplugin.com/feed/](https://businessdirectoryplugin.com/feed/)(
   main directory)
    [https://businessdirectoryplugin.com/business-directory/wpbdm-category/food-beverage-companies/feed/](https://businessdirectoryplugin.com/business-directory/wpbdm-category/food-beverage-companies/feed/)(
   category specific feed)
 * The RSS feed isn’t present on an individual listing, of course.
 * We don’t have any external published API, through WP or our own plugin right 
   now. That’s something we can consider for future development, but not something
   the plugin allows for today.​​​​​​
 * I hope that helps.
 *  Thread Starter [jomo](https://wordpress.org/support/users/jonathanmoorebcsorg/)
 * (@jonathanmoorebcsorg)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/rss-rest-json/#post-9482893)
 * Thanks. Though the RSS listing in the directory page simply points to the main
   RSS for the site which only includes posts of type Post. To get the business 
   directory listings you need to add the post type parameter: ?post_type=wpbdp_listing
 * This is also true of your links:
    [https://businessdirectoryplugin.com/business-directory/wpbdm-category/food-beverage-companies/feed/](https://businessdirectoryplugin.com/business-directory/wpbdm-category/food-beverage-companies/feed/)
   does not include a list of the companies in this category only some info about
   the category. [https://businessdirectoryplugin.com/feed/](https://businessdirectoryplugin.com/feed/)
   does not include directory entries, only posts, unless I missed something
 * To get the business directory listings you need to add the post type parameter:
   
   [https://businessdirectoryplugin.com/feed/?post_type=wpbdp_listing](https://businessdirectoryplugin.com/feed/?post_type=wpbdp_listing)
   this does list the directory entries but this link is not specified in the rss
   link in the html source.
 * It doesn’t work on a category though, this just shows category info, no listings.
   
   [https://businessdirectoryplugin.com/business-directory/wpbdm-category/food-beverage-companies/feed/?post_type=wpbdp_listing](https://businessdirectoryplugin.com/business-directory/wpbdm-category/food-beverage-companies/feed/?post_type=wpbdp_listing)
 * Nor on an individual listing:
    >The RSS feed isn’t present on an individual listing,
   of course. Actually individual Posts normally do have a feed on an individual
   listing (and a comments feed) and this applies to custom post types such as WooCommerce
   Products so I just assumed it would.
 * There is a third possibility, the xml sitemaps provided by Yoast, this will list
   as /wpbdp_listing-sitemap.xml and there is also /wpbdp_category-sitemap.xml for
   list of categories (but not the entries within the categories).
 * I was looking into the possibility of including data into a react native mobile
   app – any feed data is ok to get something started and there are already 2 (/
   feed/?post_type=wpbdp_listing and /wpbdp_listing-sitemap.xml), so that’s ok.
 * Longer term enabling the rest api would be better. I assumed it should not be
   too hard to include a custom post type in the standard WordPress rest api though
   I haven’t had a change to confirm this yet.
    -  This reply was modified 8 years, 9 months ago by [jomo](https://wordpress.org/support/users/jonathanmoorebcsorg/).
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/rss-rest-json/#post-9493311)
 * Hi Jon,
 * We’ll address this for our next major release (5.0). Thanks for noting it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘RSS / REST / JSON’ is closed to new replies.

 * ![](https://ps.w.org/business-directory-plugin/assets/icon-256x256.png?rev=2901888)
 * [Business Directory Plugin - Easy Listing Directories for WordPress](https://wordpress.org/plugins/business-directory-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/business-directory-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/business-directory-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/business-directory-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/business-directory-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/business-directory-plugin/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/rss-rest-json/#post-9493311)
 * Status: resolved