{"id":880,"date":"2017-10-26T03:08:34","date_gmt":"2017-10-26T01:08:34","guid":{"rendered":"http:\/\/eiseler.de\/wordpress\/?p=880"},"modified":"2017-10-26T03:08:34","modified_gmt":"2017-10-26T01:08:34","slug":"wordpress-rest-api","status":"publish","type":"post","link":"http:\/\/eiseler.de\/wordpress\/?p=880","title":{"rendered":"WordPress &#8211; Rest API"},"content":{"rendered":"<p>I just wanted to try the WordPress Rest API on my (this) blog, as I read, that since version 4.7 or so it is automatically featured and enabled. But, trying this <a href=\"https:\/\/developer.wordpress.org\/rest-api\/reference\/posts\/#definition\">example<\/a>\u00a0from wordpress.org on my (this) site didn&#8217;t work. I took me a while to find this <a href=\"https:\/\/wordpress.stackexchange.com\/a\/271438\">post<\/a>, which solved the problem. So as in example for my side instead of:\u00a0http:\/\/eiseler.de\/wordpress\/wp-json\/wp\/v2\/posts I used\u00a0<a href=\"http:\/\/eiseler.de\/wordpress\/?rest_route=\/wp\/v2\/posts\">http:\/\/eiseler.de\/wordpress\/?rest_route=\/wp\/v2\/posts<\/a> which worked for me, as you can see, when you try it.<\/p>\n<p>Keywords: WordPress &#8211; Rest API doesn&#8217;t work. Fixed. WordPress REST Api funktioniert nicht. Gel\u00f6st.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-880\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/eiseler.de\/wordpress\/?p=880&amp;share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\"><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-880\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/eiseler.de\/wordpress\/?p=880&amp;share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\"><span>Twitter<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-880\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/eiseler.de\/wordpress\/?p=880&amp;share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\"><span>LinkedIn<\/span><\/a><\/li><li class=\"share-pocket\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-pocket sd-button share-icon\" href=\"http:\/\/eiseler.de\/wordpress\/?p=880&amp;share=pocket\" target=\"_blank\" title=\"Click to share on Pocket\"><span>Pocket<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>I just wanted to try the WordPress Rest API on my (this) blog, as I read, that since version 4.7 or so it is automatically featured and enabled. But, trying this example\u00a0from wordpress.org on my (this) site didn&#8217;t work. I &hellip; <a href=\"http:\/\/eiseler.de\/wordpress\/?p=880\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-880\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/eiseler.de\/wordpress\/?p=880&amp;share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\"><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-880\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/eiseler.de\/wordpress\/?p=880&amp;share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\"><span>Twitter<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-880\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/eiseler.de\/wordpress\/?p=880&amp;share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\"><span>LinkedIn<\/span><\/a><\/li><li class=\"share-pocket\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-pocket sd-button share-icon\" href=\"http:\/\/eiseler.de\/wordpress\/?p=880&amp;share=pocket\" target=\"_blank\" title=\"Click to share on Pocket\"><span>Pocket<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"class_list":["post-880","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8zAuQ-ec","jetpack-related-posts":[{"id":384,"url":"http:\/\/eiseler.de\/wordpress\/?p=384","url_meta":{"origin":880,"position":0},"title":"iOS: MKNetworkKit send XML (simple, easy, fast)","date":"05\/05\/2013","format":false,"excerpt":"Maybe this is what you're looking for: Easy sending some XML with MKNetworkKit. This works for me: MKNetworkOperation *op = [self operationWithPath:@\"api\/0.6\/changeset\/create\" params: nil httpMethod:@\"PUT\"]; [op setCustomPostDataEncodingHandler: ^NSString *(NSDictionary *aD){return @\"Put your XML here\";} forType:@\"text\/xml\"]; That's it","rel":"","context":"In &quot;iOS App&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":522,"url":"http:\/\/eiseler.de\/wordpress\/?p=522","url_meta":{"origin":880,"position":1},"title":"Johannes Blog is back (and moved)","date":"01\/08\/2014","format":false,"excerpt":"after a disk crash on my Synology NAS, I moved my backup files to a web hoster. It took me a\u00a0 short while to get it up and running. After changing wp-config.php it still wouldn't run. Cause: There seems to be a small difference in the Synology installation. What did\u2026","rel":"","context":"With 1 comment","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1523,"url":"http:\/\/eiseler.de\/wordpress\/?p=1523","url_meta":{"origin":880,"position":2},"title":"Windows 11 Debloat Script:","date":"14\/09\/2024","format":false,"excerpt":"Aus Mydealz: Windows 11 Debloat Script: Wir kennen alle die bitte Wahrheit: Windows 11 wird von Microsoft vom Hause aus buchst\u00e4blich zugem\u00fcllt mit alles was nur m\u00f6glich ist. Dies frisst Leistung aber Akkulaufzeit und oft Nerven (wie das w\u00f6chentliche \"Einrichtung abschlie\u00dfen\" usw.). Dies kann man dauerhaft abstellen mit einem einzigen\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":400,"url":"http:\/\/eiseler.de\/wordpress\/?p=400","url_meta":{"origin":880,"position":3},"title":"iLOE for iPad, work in progress ....","date":"20\/05\/2013","format":false,"excerpt":"Hard working on iLOE for iPad (OpenStreetMap editor for iPad). A little bit tired, finding out that it just takes time (and energy) to implement one usecase after the other. \u00a0Lost a few hours last night, just to find out that sending data with \"DELETE\" isn't supported on most REST\u2026","rel":"","context":"In &quot;iOS App&quot;","img":{"alt_text":"","src":"https:\/\/i2.wp.com\/eiseler.de\/wordpress\/wp-content\/uploads\/2013\/05\/IMG_0136-300x225.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":910,"url":"http:\/\/eiseler.de\/wordpress\/?p=910","url_meta":{"origin":880,"position":4},"title":"Amazon Drive Nutzung - Welche Dateien sind erlaubt?","date":"04\/02\/2018","format":false,"excerpt":"Nachdem Amazon die unbeschr\u00e4nkte Nutzung des Amazon Drives eingeschr\u00e4nkt hat, k\u00fcndige ich halt meinen Plan und nutze die in Prime kostenlose Foto Funktion. Nach einem wahnsinnig langen try and error habe ich jetzt (einigerma\u00dfen) eine Liste der Dateien, die erlaubt sind: *.jpg; *.JPG; *.CR2; *.ORF; *.tff; *.tif; *.jpeg; *.JPEG; *.dng;\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1049,"url":"http:\/\/eiseler.de\/wordpress\/?p=1049","url_meta":{"origin":880,"position":5},"title":"Arduino mirror image, orientation problem with display MAX7219","date":"13\/11\/2018","format":false,"excerpt":"How to use MAX7219 LED Matrix with Arduino https:\/\/youtu.be\/eAqVJXKpj8I Good Libraries to use with the MAX7219 LED are: https:\/\/github.com\/MajicDesigns\/MD_MAX72XX LED https:\/\/github.com\/MajicDesigns\/MD_Parola Scrolling You'll find lot's of examples after you install the libraries in the Arduino IDE. Arduino mirror image, orientation problem with display MAX7219 How to solve problem with the\u2026","rel":"","context":"In &quot;Arduino&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/eiseler.de\/wordpress\/wp-content\/uploads\/2018\/11\/img_8469.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"http:\/\/eiseler.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/eiseler.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/eiseler.de\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/eiseler.de\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/eiseler.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=880"}],"version-history":[{"count":2,"href":"http:\/\/eiseler.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/880\/revisions"}],"predecessor-version":[{"id":882,"href":"http:\/\/eiseler.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/880\/revisions\/882"}],"wp:attachment":[{"href":"http:\/\/eiseler.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/eiseler.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=880"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/eiseler.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}