Settings'; return $links; } function get_page_url() { $args = array('page' => 'superdesk/admin/admin'); $url = add_query_arg($args, admin_url('options-general.php')); return $url; } function superdesk_admin() { if (isset($_POST['url'])) { $settings = array( 'url' => $_POST['url'], 'username' => $_POST['username'], 'password' => $_POST['password'], 'client_id' => $_POST['client_id'], 'status' => $_POST['status'], 'author' => $_POST['author'], 'author-byline' => $_POST['author-byline'], 'byline-words' => $_POST['byline-words'], 'display-copyright' => $_POST['display-copyright'], 'convert-keywords' => $_POST['convert-keywords'], 'import-keywords' => $_POST['import-keywords'], 'convert-services' => $_POST['convert-services'], 'subject-type' => $_POST['subject-type'], 'category' => $_POST['category'], ); update_option('superdesk_settings', $settings); } else if (get_option('superdesk_settings')) { $settings = get_option('superdesk_settings'); } else { $settings = array( 'url' => '', 'client_id' => '', 'username' => '', 'password' => '', 'status' => 'publish', 'author' => '', 'author-byline' => '', 'byline-words' => '', 'display-copyright' => '', 'convert-keywords' => '', 'import-keywords' => '', 'convert-services' => '', 'subject-type' => '', 'category' => '', ); } $statuses = array( 'publish' => 'Published', 'draft' => 'Draft' ); $authors = array(); $categories = array(); $args = array( 'hide_empty' => 0, ); $all_categories = get_categories($args); foreach ($all_categories as $category) { $categories[$category->cat_ID] = $category->cat_name; } $all_users = get_users(); foreach ($all_users as $user) { $authors[$user->ID] = $user->data->display_name; } ?>

Superdesk Publisher

Autoload /wp-content/plugins/superdesk-wordpress-plugin/autoload.php
Status of the ingested articles/posts
$value) { ?>


Display the copyright information

Convert slugline keywords into WP tags

Import SD keywords as WP tags

Import Superdesk categories as Wordpress categories

Import Superdesk subjects as