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_listingHowever 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=postidredirect to:
mysite.com/full-post-url/feed/
which gives 404 error for posts of type wpbdp_listingWordPress 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
- The topic ‘RSS / REST / JSON’ is closed to new replies.