WordPress Plugin does not work.
The WordPress plugin does not work and you don't have your published articles available as blog posts.
Please validate the following things:
https://[yourdomain].com/wp-json/ prints out json
https://[yourdomain].com/wp-json/scope/v1/status must return null (a blank page)
Deactivate the plugin, paste the activation key again and activate the plugin again
If you still need support please contact hello@thescope.com with the following details:
WordPress URL | https://thescope.com/blog/curation |
WordPress Plugin Version | In WordPress - Installed plugins |
WordPress Plugin Key | Activation Key, that you got from Scope (32characters) |
My Wordpress is running Polylang and I the posts do not get published automatically
/**
This WP installation runs the Polylang Plugin as well as the Scope Plugin. (among others)
Problem: Scope creates new blog posts through the WP REST API. Posts that are created through the REST API
do not have a language set and posts that do not have a language set will not be shown (https://polylang.pro/doc/i-activated-the-plugin-and-my-posts-are-not-displayed-anymore/).
Once a user manually opens a blog post in the WP backend the language will be set and the post becomes visible, but this defeats the purpose of the Scope plugin.
The following function will set the default language for all new posts that are created through the
REST API and solve the problem (as long as all posts REST API based posts are created in the default language)
Source: https://nology.de/wordpress-api-v2-with-polylang-and-acf.html
**/
function polylang_json_api_init() {
global $polylang;
$default = pll_default_language();
$langs = pll_languages_list();
$cur_lang = $_GET['lang'];
if (!in_array($cur_lang, $langs)) {
$cur_lang = $default;
}
$polylang->curlang = $polylang->model->get_language($cur_lang);
$GLOBALS['text_direction'] = $polylang->curlang->is_rtl ? 'rtl' : 'ltr';
}
add_action('rest_api_init', 'polylang_json_api_init');