Title: Dave van Hoorn's Replies | WordPress.org

---

# Dave van Hoorn

  [  ](https://wordpress.org/support/users/freshcode/)

 *   [Profile](https://wordpress.org/support/users/freshcode/)
 *   [Topics Started](https://wordpress.org/support/users/freshcode/topics/)
 *   [Replies Created](https://wordpress.org/support/users/freshcode/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/freshcode/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/freshcode/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/freshcode/engagements/)
 *   [Favorites](https://wordpress.org/support/users/freshcode/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Undefined index: authorship](https://wordpress.org/support/topic/undefined-index-authorship/)
 *  [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * (@freshcode)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-authorship/#post-5280972)
 * [Version 1.6.1](https://wordpress.org/plugins/wordpress-seo/) was just released
   and it fixed the problem for me. Thanks Yoast.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Undefined index: authorship](https://wordpress.org/support/topic/undefined-index-authorship/)
 *  [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * (@freshcode)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-authorship/#post-5280971)
 * Same here, but with two more error messages. This happens when creating a new
   page.
 *     ```
       Notice: Undefined index: authorship in  ../wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php on line 451
   
       Notice: Undefined index: type in ../wp-content/plugins/wordpress-seo/admin/class-metabox.php on line 694
   
       Warning: Cannot modify header information - headers already sent by (output started at ../wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php:451) in ../wp-includes/option.php on line 750
   
       Warning: Cannot modify header information - headers already sent by (output started at ../wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php:451) in ../wp-includes/option.php on line 751
       ```
   
 * Fresh WordPress 4.0 installation with a couple of plugins: WordPress SEO 1.6,
   WPML 3.1.7.2 and WPML String Translation 2.0.9.1.
 * For me this isn’t something criticaI I need to get fixed right now, but I guess
   it’s good the Yoast team knows something’s wrong.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP REST API (WP API)] Custom meta data](https://wordpress.org/support/topic/custom-meta-data-2/)
 *  [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * (@freshcode)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/custom-meta-data-2/#post-4951467)
 * I can’t seem to figure out how this works. Isn’t it possible to get all the custom
   fields data if I loop over a certain amount of posts?
 * My URL endpoint is ‘/posts?type=recepten’, and I would like to see the post_meta
   field so I can get the values of certain custom fields and display them.
 * Thanks Ryan for creating this great plugin, but please help me out to get it 
   working the way I’d like to again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] Getting custom post types](https://wordpress.org/support/topic/getting-custom-post-types/)
 *  [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * (@freshcode)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/getting-custom-post-types/#post-3797232)
 * You might want to read the ‘other notes’ section. This plugin already does what
   your looking for:
 * `http://www.yourdomain.com/api/get_recent_posts?post_type=yourcustomposttype&
   dev=1`
 * Change ‘yourcustomposttype’ to your custom post type. Good luck!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MU Central Taxonomies] WP3.5 MS MU Central Taxonomies = not work?](https://wordpress.org/support/topic/wp35-ms-mu-central-taxonomies-not-work/)
 *  [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * (@freshcode)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/wp35-ms-mu-central-taxonomies-not-work/#post-3228633)
 * Please update the plugin, it’s nice to have and keeps your rating good 😉
 * This worked for my clean WordPress 3.5.1 install:
 *     ```
       add_action('init', 'central_taxonomies');
       add_action('switch_blog', 'central_taxonomies');
   
       function central_taxonomies () {
       	global $wpdb;
       	$wpdb->terms = $wpdb->base_prefix."terms";
       	$wpdb->term_taxonomy = $wpdb->base_prefix."term_taxonomy";
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] JSON API create_post, always create double posts](https://wordpress.org/support/topic/json-api-create_post-always-create-double-posts/)
 *  Thread Starter [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * (@freshcode)
 * [13 years ago](https://wordpress.org/support/topic/json-api-create_post-always-create-double-posts/#post-3478828)
 * Hello agent207,
 * I haven’t really had time to work on this project but I just tested it again,
   and now it’s working as expected, with and without dev=1 in the URL.
 * What exactly do you mean by debug mode?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] Removing a post](https://wordpress.org/support/topic/removing-a-post/)
 *  [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * (@freshcode)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/removing-a-post/#post-3476548)
 * You need to activate the controller in the plugin settings. WP Dashboard -> Settings-
   > JSON API -> activate the Posts Extra controller
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] Removing a post](https://wordpress.org/support/topic/removing-a-post/)
 *  [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * (@freshcode)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/removing-a-post/#post-3476511)
 * Hi,
 * I created a controller for deleting a post by ID. Save the PHP code from the 
   following link as ‘postsextra.php’ in the plugins -> json-api -> controllers 
   folder.
 * **Link**
    [http://pastebin.com/0mT3zSzp](http://pastebin.com/0mT3zSzp)
 * **Usage**
    1. Request a nonce using the following URL: [http://www.yourdomain.com/app/get_nonce/?controller=postsextra&method=delete_post](http://www.yourdomain.com/app/get_nonce/?controller=postsextra&method=delete_post)
 * 2. Then use the nonce to delete the post by ID, in this case post with ID 153
   
   [http://www.yourdomain.com/app/postsextra/delete_post/?nonce=c4dec48dbc&id=153](http://www.yourdomain.com/app/postsextra/delete_post/?nonce=c4dec48dbc&id=153)
 * Have a good one 🙂

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