{"id":6790,"date":"2016-08-21T17:14:38","date_gmt":"2016-08-21T15:14:38","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=6790"},"modified":"2021-09-15T17:14:16","modified_gmt":"2021-09-15T15:14:16","slug":"blog2diary","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2016\/08\/21\/blog2diary\/","title":{"rendered":"creating diary entries from my (little) blog articles"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/codex.wordpress.org\/WordPress_Feeds\">https:\/\/codex.wordpress.org\/WordPress_Feeds<\/a><\/li>\n<li><a href=\"https:\/\/codex.wordpress.org\/WordPress_Feeds#Finding_Your_Feed_URL\">https:\/\/codex.wordpress.org\/WordPress_Feeds#Finding_Your_Feed_URL<\/a><\/li>\n<\/ul>\n<p>1st approach: xmlstarlet with an XPath expression (rss\/channel\/item\/link) + shell wrapper.<\/p>\n<p>2nd approach:\u00a0XQuery script looping over rss\/channel\/item (+ shell wrapper). I am glad to\u00a0upload it to my github area, in case somebody is interested.<\/p>\n<p>Update 2016-08-26: By default WordPress creates an RSS feed with just 10 entries. I don&#8217;t create my diary entries (as described above) a couple of times a day, so sometimes it may very well make sense to look back like 20 or more entries. I did not immediately recognise, that figure is a parameter WordPress allows you to set for your blog. I rather came across this forum thread:<\/p>\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/support\/topic\/how-to-make-rss-summary-feeds-show-300-characters-not-just-50\">https:\/\/wordpress.org\/support\/topic\/how-to-make-rss-summary-feeds-show-300-characters-not-just-50<\/a><\/li>\n<\/ul>\n<p>And I found the &#8220;expert&#8217;s&#8221; opinion rather annoying. Luckily enough I was courageous enough to search for the suspected parameter in the <em>Settings \/ Reading<\/em> section. I am glad it&#8217;s there.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/codex.wordpress.org\/WordPress_Feeds https:\/\/codex.wordpress.org\/WordPress_Feeds#Finding_Your_Feed_URL 1st approach: xmlstarlet with an XPath expression (rss\/channel\/item\/link) + shell wrapper. 2nd approach:\u00a0XQuery script looping over rss\/channel\/item (+ shell wrapper). I am glad to\u00a0upload it to my github area, in case somebody is interested. Update 2016-08-26: By default WordPress creates an RSS feed with just 10 entries. I don&#8217;t create my diary entries [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[851,732,733],"tags":[],"class_list":["post-6790","post","type-post","status-publish","format-standard","hentry","category-xmlstarlet","category-xpath","category-xquery"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1Lw","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=6790"}],"version-history":[{"count":1,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6790\/revisions"}],"predecessor-version":[{"id":11876,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6790\/revisions\/11876"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=6790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=6790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=6790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}