Dave van Hoorn
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Undefined index: authorshipVersion 1.6.1 was just released and it fixed the problem for me. Thanks Yoast.
Forum: Plugins
In reply to: [Yoast SEO] Undefined index: authorshipSame 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
In reply to: [WP REST API (WP API)] Custom meta dataI 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
In reply to: [JSON API] Getting custom post typesYou might want to read the ‘other notes’ section. This plugin already does what your looking for:
https://www.yourdomain.com/api/get_recent_posts?post_type=yourcustomposttype&dev=1
Change ‘yourcustomposttype’ to your custom post type. Good luck!
Forum: Plugins
In reply to: [MU Central Taxonomies] WP3.5 MS MU Central Taxonomies = not work?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
In reply to: [JSON API] JSON API create_post, always create double postsHello 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
In reply to: [JSON API] Removing a postYou need to activate the controller in the plugin settings. WP Dashboard -> Settings -> JSON API -> activate the Posts Extra controller
Forum: Plugins
In reply to: [JSON API] Removing a postHi,
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
https://pastebin.com/0mT3zSzpUsage
1. Request a nonce using the following URL:
https://www.yourdomain.com/app/get_nonce/?controller=postsextra&method=delete_post2. Then use the nonce to delete the post by ID, in this case post with ID 153
https://www.yourdomain.com/app/postsextra/delete_post/?nonce=c4dec48dbc&id=153Have a good one ??