This fixes the plugin so it works with any post type in Wordpress. The main approach is to include a Javascript variable containing the post type so the JSON API call can include the post_type argument. That allows it to properly retrieve the contents of any post type, not just the default.
Also corrected the comment on categoryID in the Wordpress install. It appears to be mandatory, and should be set to -1 to allow the NodeBB ACP category to be used.
Minor fix on the wordpressURL variable not echoing out the actual site URL.
This fixes the plugin so it works with any post type in Wordpress. The main approach is to include a Javascript variable containing the post type so the JSON API call can include the post_type argument. That allows it to properly retrieve the contents of any post type, not just the default.
Also corrected the comment on categoryID in the Wordpress install. It appears to be mandatory, and should be set to -1 to allow the NodeBB ACP category to be used.
Minor fix on the wordpressURL variable not echoing out the actual site URL.