{"id":947,"date":"2009-06-05T12:41:04","date_gmt":"2009-06-05T12:41:04","guid":{"rendered":"http:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml"},"modified":"2021-05-29T02:44:41","modified_gmt":"2021-05-29T02:44:41","slug":"date_headings_in_action_streams","status":"publish","type":"post","link":"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml","title":{"rendered":"Date Headings in Action Streams"},"content":{"rendered":"<p>I&#8217;m playing with Action Streams in MT so I can add my activity elsewhere here.  It&#8217;s rather daunting, unless you just want to use the default settings, so I&#8217;m going to try to post tips as I go.<br \/>\nSay you have a feed that is infrequently updated that you want to display on you site using Action Streams.  For me, it was <a href=\"http:\/\/blip.fm\/salguod\">my blip.fm feed<\/a>.  I use blip.fm to share music that I find interesting, but I don&#8217;t do so regularly.  Some days I might blip a bunch of songs, then I might go days before the next blip.<br \/>\nThe bundled Action Streams feed widget sorts the items by the day of the week.  So, you get the subhead of &#8216;<strong>Today<\/strong>&#8216; and the items posted today, then you&#8217;d get &#8216;<strong>Thursday<\/strong>&#8216; (since today is Friday) and the items from yesterday, then &#8216;<strong>Wednesday<\/strong>&#8216; and so on until the max number of items is reached.<br \/>\nWell, if you set the number of items too high or if you don&#8217;t generate new items that often, you can get multiple instances of &#8216;<strong>Today<\/strong>&#8216;.  The reason is, the widget code simply checks to see what day it is today and then looks for any items that have the same day and changes the label to today.  So, anything that happened on &#8216;<strong>Friday&#8217;<\/strong>, even if it&#8217;s 28 weeks ago, gets labeled &#8216;<strong>Today<\/strong>&#8216;.<br \/>\nIt&#8217;s a little odd to see &#8216;<strong>Today<\/strong>&#8216; then &#8216;<strong>Monday<\/strong>&#8216; then &#8216;<strong>Thursday<\/strong>&#8216; then &#8216;<strong>Today<\/strong>&#8216; again.<br \/>\nFortunately, the fix is easy.  You just change the date format to look for &#8216;<strong>Month date&#8217;<\/strong> instead.  That&#8217;s an attribute of the <a href=\"http:\/\/www.movabletype.org\/documentation\/appendices\/tags\/date.html\">&lt;mt:date&gt; tag<\/a>.  In the Action Streams Widget, it&#8217;s <code>&lt;mt:date format=\"%A\"&gt;<\/code>, change that to <code>&lt;mt:date format=\"%B %d\"&gt;<\/code>.  You&#8217;ll also need to change the <code>&lt;mt:StreamActionDate format=\"%A\"&gt;<\/code> to <code>&lt;mt:StreamActionDate format=\"%B %d\"&gt;<\/code>.<br \/>\nThat&#8217;s it.  Now, today&#8217;s items will still say &#8216;<strong>Today<\/strong>&#8216;, but older items will be labeled by their actual date, &#8216;<strong>May 3<\/strong>&#8216;.  If you want the date formatted differently, you can use the various attributes of the <a href=\"http:\/\/www.movabletype.org\/documentation\/appendices\/tags\/date.html\">&lt;mt:date&gt; tag<\/a> to generate whatever output you want.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m playing with Action Streams in MT so I can add my activity elsewhere here. It&#8217;s rather daunting, unless you just want to use the default settings, so I&#8217;m going<a href=\"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml\" class=\"more-link\">Read More <span class=\"screen-reader-text\">Date Headings in Action Streams<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Date Headings in Action Streams - salguod.net<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Date Headings in Action Streams - salguod.net\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m playing with Action Streams in MT so I can add my activity elsewhere here. It&#8217;s rather daunting, unless you just want to use the default settings, so I&#8217;m goingRead More Date Headings in Action Streams\" \/>\n<meta property=\"og:url\" content=\"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml\" \/>\n<meta property=\"og:site_name\" content=\"salguod.net\" \/>\n<meta property=\"article:published_time\" content=\"2009-06-05T12:41:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-29T02:44:41+00:00\" \/>\n<meta name=\"author\" content=\"Doug Schaefer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@salguod\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Doug Schaefer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml\",\"url\":\"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml\",\"name\":\"Date Headings in Action Streams - salguod.net\",\"isPartOf\":{\"@id\":\"https:\/\/salguod.net\/blog\/#website\"},\"datePublished\":\"2009-06-05T12:41:04+00:00\",\"dateModified\":\"2021-05-29T02:44:41+00:00\",\"author\":{\"@id\":\"https:\/\/salguod.net\/blog\/#\/schema\/person\/2237e297e41300051087d8791343043f\"},\"breadcrumb\":{\"@id\":\"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/salguod.net\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Date Headings in Action Streams\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/salguod.net\/blog\/#website\",\"url\":\"https:\/\/salguod.net\/blog\/\",\"name\":\"salguod.net\",\"description\":\"Stuff I Think Up\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/salguod.net\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/salguod.net\/blog\/#\/schema\/person\/2237e297e41300051087d8791343043f\",\"name\":\"Doug Schaefer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/salguod.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d8dde291ac4514740353f4bb9cbd9418?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d8dde291ac4514740353f4bb9cbd9418?s=96&d=mm&r=g\",\"caption\":\"Doug Schaefer\"},\"sameAs\":[\"http:\/\/salguod.net\",\"https:\/\/twitter.com\/salguod\"],\"url\":\"https:\/\/salguod.net\/blog\/author\/salguod\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Date Headings in Action Streams - salguod.net","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml","og_locale":"en_US","og_type":"article","og_title":"Date Headings in Action Streams - salguod.net","og_description":"I&#8217;m playing with Action Streams in MT so I can add my activity elsewhere here. It&#8217;s rather daunting, unless you just want to use the default settings, so I&#8217;m goingRead More Date Headings in Action Streams","og_url":"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml","og_site_name":"salguod.net","article_published_time":"2009-06-05T12:41:04+00:00","article_modified_time":"2021-05-29T02:44:41+00:00","author":"Doug Schaefer","twitter_card":"summary_large_image","twitter_creator":"@salguod","twitter_misc":{"Written by":"Doug Schaefer","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml","url":"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml","name":"Date Headings in Action Streams - salguod.net","isPartOf":{"@id":"https:\/\/salguod.net\/blog\/#website"},"datePublished":"2009-06-05T12:41:04+00:00","dateModified":"2021-05-29T02:44:41+00:00","author":{"@id":"https:\/\/salguod.net\/blog\/#\/schema\/person\/2237e297e41300051087d8791343043f"},"breadcrumb":{"@id":"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/salguod.net\/blog\/2009\/06\/date_headings_in_action_streams.shtml#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/salguod.net\/blog"},{"@type":"ListItem","position":2,"name":"Date Headings in Action Streams"}]},{"@type":"WebSite","@id":"https:\/\/salguod.net\/blog\/#website","url":"https:\/\/salguod.net\/blog\/","name":"salguod.net","description":"Stuff I Think Up","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/salguod.net\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/salguod.net\/blog\/#\/schema\/person\/2237e297e41300051087d8791343043f","name":"Doug Schaefer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/salguod.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d8dde291ac4514740353f4bb9cbd9418?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d8dde291ac4514740353f4bb9cbd9418?s=96&d=mm&r=g","caption":"Doug Schaefer"},"sameAs":["http:\/\/salguod.net","https:\/\/twitter.com\/salguod"],"url":"https:\/\/salguod.net\/blog\/author\/salguod"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1020,"url":"https:\/\/salguod.net\/blog\/2010\/03\/five_for_friday_10.shtml","url_meta":{"origin":947,"position":0},"title":"Five for Friday","author":"Doug Schaefer","date":"March 19, 2010","format":false,"excerpt":"An \"Occasional Series\" here at Salguod.net. Inspired by Daniel at Alien Soil, I fire up Media Player on random and post the first 5 songs here. As with last time, I'm going to head over to blip.fm after I post this and blip each track so you can listen. Head\u2026","rel":"","context":"In &quot;Goofiness&quot;","block_context":{"text":"Goofiness","link":"https:\/\/salguod.net\/blog\/goofiness"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1018,"url":"https:\/\/salguod.net\/blog\/2010\/03\/five_for_friday_9.shtml","url_meta":{"origin":947,"position":1},"title":"Five for Friday","author":"Doug Schaefer","date":"March 5, 2010","format":false,"excerpt":"An \"Occasional Series\" here at Salguod.net. Inspired by Daniel at Alien Soil, I fire up Media Player on random and post the first 5 songs here. I'm going to try something different this time. I'm going to head over to blip.fm after I post this and blip each track so\u2026","rel":"","context":"In &quot;Goofiness&quot;","block_context":{"text":"Goofiness","link":"https:\/\/salguod.net\/blog\/goofiness"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.salguod.net\/weblog\/images\/five-for-friday\/firstcallgodisgood.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1051,"url":"https:\/\/salguod.net\/blog\/2010\/09\/five_for_friday_13.shtml","url_meta":{"origin":947,"position":2},"title":"Five for Friday","author":"Doug Schaefer","date":"September 10, 2010","format":false,"excerpt":"An \"Occassional Series\" here at Salguod.net. Inspired by Daniel at Alien Soil, I fire up Media Player on random and post the first 5 songs here. Want to listen? Head over to my blip.fm profile and look for the songs tagged #five4friday. Sorry, not going to take the time today.\u2026","rel":"","context":"In &quot;Goofiness&quot;","block_context":{"text":"Goofiness","link":"https:\/\/salguod.net\/blog\/goofiness"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.salguod.net\/weblog\/assets_c\/2010\/09\/no_doubt_the_singles-thumb-200x200-1749.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1048,"url":"https:\/\/salguod.net\/blog\/2010\/08\/five_for_friday_12.shtml","url_meta":{"origin":947,"position":3},"title":"Five for Friday","author":"Doug Schaefer","date":"August 27, 2010","format":false,"excerpt":"Been a loooong time since I did one of these. An \"Occassional Series\" here at Salguod.net. Inspired by Daniel at Alien Soil, I fire up Media Player on random and post the first 5 songs here. Want to listen? Head over to my blip.fm profile and look for the songs\u2026","rel":"","context":"In &quot;Goofiness&quot;","block_context":{"text":"Goofiness","link":"https:\/\/salguod.net\/blog\/goofiness"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1031,"url":"https:\/\/salguod.net\/blog\/2010\/05\/five_for_friday_11.shtml","url_meta":{"origin":947,"position":4},"title":"Five for Friday","author":"Doug Schaefer","date":"May 14, 2010","format":false,"excerpt":"An \"Occasional Series\" here at Salguod.net. Inspired by Daniel at Alien Soil, I fire up Media Player on random and post the first 5 songs here. Want to listen? Head over to my blip.fm profile and look for the songs tagged #five4friday. Pomplamoose - Mrs Robinson from Tribute to Famous\u2026","rel":"","context":"In &quot;Goofiness&quot;","block_context":{"text":"Goofiness","link":"https:\/\/salguod.net\/blog\/goofiness"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.salguod.net\/weblog\/images\/five-for-friday\/pomplamouse-tributetofamouspeople.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":429,"url":"https:\/\/salguod.net\/blog\/2006\/01\/psalm_18.shtml","url_meta":{"origin":947,"position":5},"title":"Psalm 18","author":"Doug Schaefer","date":"January 4, 2006","format":false,"excerpt":"For those of you who've noticed that it's been 6 1\/2 months since my last Quiet Time Journal entry and assumed that I've been reading regularly without posting, thank you for your faith in me. You'd be wrong, unfortunately, but thanks anyway. (If you really did notice that it had\u2026","rel":"","context":"In &quot;Quiet Time Journal&quot;","block_context":{"text":"Quiet Time Journal","link":"https:\/\/salguod.net\/blog\/quiet-time-journal"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/salguod.net\/blog\/wp-json\/wp\/v2\/posts\/947"}],"collection":[{"href":"https:\/\/salguod.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salguod.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salguod.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/salguod.net\/blog\/wp-json\/wp\/v2\/comments?post=947"}],"version-history":[{"count":1,"href":"https:\/\/salguod.net\/blog\/wp-json\/wp\/v2\/posts\/947\/revisions"}],"predecessor-version":[{"id":1338,"href":"https:\/\/salguod.net\/blog\/wp-json\/wp\/v2\/posts\/947\/revisions\/1338"}],"wp:attachment":[{"href":"https:\/\/salguod.net\/blog\/wp-json\/wp\/v2\/media?parent=947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salguod.net\/blog\/wp-json\/wp\/v2\/categories?post=947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salguod.net\/blog\/wp-json\/wp\/v2\/tags?post=947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}