Title: JSON API broken
Last modified: March 30, 2017

---

# JSON API broken

 *  Resolved [spyretos](https://wordpress.org/support/users/spyretos/)
 * (@spyretos)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/json-api-broken/)
 * With plugin enabled in the json api code replied, there is css and js of the 
   plugin. I fixed this by
 *     ```
                   //print "<link rel='stylesheet' id='cpm_style-css'  href='".CPM_PLUGIN_URL.'/styles/cpm-styles.css'."' type='text/css' media='all' />";
                   //print "<script src='".CPM_PLUGIN_URL.'/js/cpm.js'."'></script>";
       ```
   
 * and by replacing it with
 *     ```
       		wp_enqueue_style(
       			'cpm_style',
       			CPM_PLUGIN_URL.'/styles/cpm-styles.css'
       		);
   
       		wp_enqueue_script(
       			'cpm_script',
       			CPM_PLUGIN_URL.'/js/cpm.js',
       			array('jquery'),
                   null,
                   true
       		);
       ```
   
 * and its fixed. Please add on main source.

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/json-api-broken/#post-8974449)
 * Hello,
 * Thank you very much, in reality I will implement in the plugin a different alternative:
 * – I will include an option in the settings page of the plugin for printing the
   tags directly in the pages content (as the current behavior), or include them
   in the footer with your code.
 * Unfortunatelly, there are many themes in the market that don’t follow the WordPress
   guide, and don’t call the WordPress function wp_footer(); in the theme to include
   the enqueued resources.
 * Best regards.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/json-api-broken/#post-8978994)
 * Hello,
 * I’ve published a plugin’s update for controlling where to load of resources: 
   in the page’s content or footer. The option is located in the settings page of
   the plugin, specifically in the “Troubleshoot” section.
 * Best regards.

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

The topic ‘JSON API broken’ is closed to new replies.

 * ![](https://ps.w.org/codepeople-post-map/assets/icon-256x256.jpg?rev=980165)
 * [CodePeople Post Map for Google Maps](https://wordpress.org/plugins/codepeople-post-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codepeople-post-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codepeople-post-map/)
 * [Active Topics](https://wordpress.org/support/plugin/codepeople-post-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codepeople-post-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codepeople-post-map/reviews/)

## Tags

 * [json](https://wordpress.org/support/topic-tag/json/)

 * 2 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/json-api-broken/#post-8978994)
 * Status: resolved