{"id":17021,"date":"2019-01-05T23:06:22","date_gmt":"2019-01-05T22:06:22","guid":{"rendered":"https:\/\/www.davidbosman.fr\/blog\/?p=17021"},"modified":"2019-01-26T15:55:51","modified_gmt":"2019-01-26T14:55:51","slug":"ulysses-and-a-custom-wordpress-blog","status":"publish","type":"post","link":"https:\/\/www.davidbosman.fr\/en\/?p=17021","title":{"rendered":"Getting Ulysses to publish to a custom WordPress blog"},"content":{"rendered":"<p>Do you get an error message while trying to publish a post to your blog directly from Ulysses?&nbsp;I did.<br \/>\n<!--more--><br \/>\nAs I could not find what was going wrong, I created a dummy blog from scratch, to no avail: I was getting the same error message.&nbsp;But at least there was a good news there: I now was certain the problem was lying somewhere between Ulysses and\/or WordPress, not in one of the many plugins and security enhancement I use on my live blog.<\/p>\n<p>After a bit of googling, it appears the problem is related to WordPress, not Ulysses. More info&nbsp;<a href=\"https:\/\/medium.com\/@hans.bruins\/getting-ulysses-to-work-on-custom-wordpress-sites-bd03ff2bc2cb\">here<\/a>\u2013with many thanks to Hans Bruins for sharing his findings with us. Go read his explanations on why it doesn&#8217;t work as expected.&nbsp;Here is the quick fix to the problem:<\/p>\n<ol>\n<li>Rename the \u201cyour-blog-url\/<strong>xrmlrpc.php<\/strong>\u201d file to something you alone will know, let\u2019s&nbsp;say &#8220;<strong>odysseus.php\u201d<\/strong>.<\/li>\n<li>Install the<a href=\"https:\/\/wordpress.org\/plugins\/rename-xml-rpc\/\"> Rename XMLRPC plugin<\/a>.<\/li>\n<li>FTP to the newly created <strong>wp-content\/plugins\/rename-xlmrpc<\/strong> directory, and move the&nbsp;<strong>rename-xlmrpc.php<\/strong>&nbsp;file from there to the root of the&nbsp;<strong>plugins<\/strong> directory.<\/li>\n<li>Now the tricky part starts: open this <strong>rename-xlmrpc.php&nbsp;<\/strong>file and locate a line containing &#8220;xmlrpc2.php&#8221; (line #14 in the screenshot):<br \/>\n<a href=\"https:\/\/www.davidbosman.fr\/blog\/wp-content\/uploads\/2019\/01\/xmlrpcrename.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17019\" src=\"https:\/\/www.davidbosman.fr\/blog\/wp-content\/uploads\/2019\/01\/xmlrpcrename.jpg\" alt=\"\" width=\"1326\" height=\"156\"><\/a><\/li>\n<li>And replace this name by the name you gave to your xml-rpc.php:<br \/>\n<a href=\"https:\/\/www.davidbosman.fr\/blog\/wp-content\/uploads\/2019\/01\/xmlrpcrename2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17020\" src=\"https:\/\/www.davidbosman.fr\/blog\/wp-content\/uploads\/2019\/01\/xmlrpcrename2.jpg\" alt=\"\" width=\"1326\" height=\"156\"><\/a><\/li>\n<\/ol>\n<ol start=\"6\">\n<li>Save. Go to your WordPress admin and activate the Rename XMLRPC plugin.<\/li>\n<li>Done. Ulysses should now be able to publish to your blog, when using the new file name in its settings: <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17018\" src=\"https:\/\/www.davidbosman.fr\/blog\/wp-content\/uploads\/2019\/01\/xmlrpcrename3.jpg\" width=\"1376\" height=\"764\"><\/li>\n<\/ol>\n<p>A big thank you too to my host,&nbsp;<a href=\"https:\/\/monarobase.net\">Monarobase,<\/a> for his support and advice: you saved me hours&nbsp;\u2764\ufe0f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you get an error message while trying to publish a post to your blog directly from Ulysses?&nbsp;I did.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[4,5],"class_list":["post-17021","post","type-post","status-publish","format-standard","hentry","category-general","tag-tips-tricks","tag-writing"],"_links":{"self":[{"href":"https:\/\/www.davidbosman.fr\/en\/index.php?rest_route=\/wp\/v2\/posts\/17021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.davidbosman.fr\/en\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.davidbosman.fr\/en\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.davidbosman.fr\/en\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.davidbosman.fr\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17021"}],"version-history":[{"count":1,"href":"https:\/\/www.davidbosman.fr\/en\/index.php?rest_route=\/wp\/v2\/posts\/17021\/revisions"}],"predecessor-version":[{"id":17259,"href":"https:\/\/www.davidbosman.fr\/en\/index.php?rest_route=\/wp\/v2\/posts\/17021\/revisions\/17259"}],"wp:attachment":[{"href":"https:\/\/www.davidbosman.fr\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.davidbosman.fr\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.davidbosman.fr\/en\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}