<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Tag: post_date</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sun, 26 May 2013 01:52:05 +0000</pubDate>

<item>
<title>cas on "Thematic Child Theme Post Date Calendar"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-post-date-calendar#post-14418</link>
<pubDate>Thu, 05 Aug 2010 13:10:12 +0000</pubDate>
<dc:creator>cas</dc:creator>
<guid isPermaLink="false">14418@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You're very welcome - I just hope I'm not writing bloated/unnecessary junk in the function, so consider the above Alpha if you use it.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Thematic Child Theme Post Date Calendar"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-post-date-calendar#post-14375</link>
<pubDate>Wed, 04 Aug 2010 15:39:26 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">14375@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;hey that looks really nice.  thanks for sharing!
&#60;/p&#62;</description>
</item>
<item>
<title>cas on "Thematic Child Theme Post Date Calendar"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-post-date-calendar#post-14372</link>
<pubDate>Wed, 04 Aug 2010 15:32:37 +0000</pubDate>
<dc:creator>cas</dc:creator>
<guid isPermaLink="false">14372@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi there - I could use some help looking over my working code to see if I'm doing this right - apologies in advance if I'm totally offending anyone with my copy-paste PHP skills.&#60;/p&#62;
&#60;p&#62;Goal: modify a child-theme of Thematic to make posts display the meta like the following:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;Remove reference to the author (single author blog)&#60;/li&#62;
&#60;li&#62;Modify the date to display the Day of the week, Month, Day and Year&#60;/li&#62;
&#60;li&#62;Display the post date floated to the left of the Post Title and Content and styled&#60;/li&#62;
&#60;li&#62;Leave the Category, Tag, Comments and Edit listings/links under the post, as normal&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;Here's what I came up with:&#60;/p&#62;
&#60;p&#62;Researching the web, these forums, and especially this post -&#60;br /&#62;
&#60;a href=&#34;http://a.parsons.edu/~zeravivm/f09/osd/12/15/how-to-display-thematic-postmeta-information-in-a-different-location/&#34; rel=&#34;nofollow&#34;&#62;http://a.parsons.edu/~zeravivm/f09/osd/12/15/how-to-display-thematic-postmeta-information-in-a-different-location/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I stuck this into my functions file to filter the thematic_postheader:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
// Pull the entry_meta into a calendar format&#60;/p&#62;
&#60;p&#62;function childtheme_postheader() {&#60;br /&#62;
    global $id, $post, $authordata;&#60;/p&#62;
&#60;p&#62;	// Information in Post Header&#60;br /&#62;
    if (is_front_page() &#124;&#124; is_single() &#124;&#124; is_page() &#124;&#124; is_category() &#124;&#124; is_tag() &#124;&#124; is_author() &#124;&#124; is_date() &#124;&#124; is_archive() &#124;&#124; is_preview()) {&#60;/p&#62;
&#60;p&#62;		$postmeta = '&#38;lt;div class=&#34;entry-meta&#34;&#38;gt;';&#60;br /&#62;
		$postmeta .= '&#38;lt;span class=&#34;entry-date&#34;&#38;gt;&#38;lt;abbr class=&#34;published&#34; title=&#34;';&#60;br /&#62;
		$postmeta .= get_the_time('Y-m-d\TH:i:sO') . '&#34;&#38;gt;';&#60;br /&#62;
		$postmeta .= '&#38;lt;span class=&#34;post_date post_date_day_of_week&#34;&#38;gt;' . get_the_time('D') . '&#38;lt;/span&#38;gt;';&#60;br /&#62;
		$postmeta .= '&#38;lt;span class=&#34;post_date post_date_month&#34;&#38;gt;' . get_the_time('M') . '&#38;lt;/span&#38;gt;';&#60;br /&#62;
		$postmeta .= '&#38;lt;span class=&#34;post_date post_date_day&#34;&#38;gt;' . get_the_time('j') . '&#38;lt;/span&#38;gt;';&#60;br /&#62;
		$postmeta .= '&#38;lt;span class=&#34;post_date post_date_year&#34;&#38;gt;' . get_the_time('Y') . '&#38;lt;/span&#38;gt;';&#60;br /&#62;
		$postmeta .= '&#38;lt;/abbr&#38;gt;&#38;lt;/span&#38;gt;';&#60;br /&#62;
		$postmeta .= &#34;&#38;lt;/div&#38;gt;&#38;lt;!-- .entry-meta --&#38;gt;\n&#34;;&#60;/p&#62;
&#60;p&#62;		$posttitle = '&#38;lt;div class=&#34;entry-title_box&#34;&#38;gt;&#38;lt;h1 class=&#34;entry-title&#34;&#38;gt;' . get_the_title() . &#34;&#38;lt;/h1&#38;gt;&#38;lt;/div&#38;gt;\n&#34;;&#60;br /&#62;
		} elseif (is_404()) {&#60;br /&#62;
			$posttitle = '&#38;lt;h1 class=&#34;entry-title&#34;&#38;gt;' . __('Not Found', 'thematic') . &#34;&#38;lt;/h1&#38;gt;\n&#34;;&#60;br /&#62;
		} else {&#60;br /&#62;
			$posttitle = '&#38;lt;h2 class=&#34;entry-title&#34;&#38;gt;&#38;lt;a href=&#34;';&#60;br /&#62;
			$posttitle .= get_permalink();&#60;br /&#62;
			$posttitle .= '&#34; title=&#34;';&#60;br /&#62;
			$posttitle .= __('Permalink to ', 'thematic') . the_title_attribute('echo=0');&#60;br /&#62;
			$posttitle .= '&#34; rel=&#34;bookmark&#34;&#38;gt;';&#60;br /&#62;
			$posttitle .= get_the_title();&#60;br /&#62;
			$posttitle .= &#34;&#38;lt;/h2&#38;gt;\n&#34;;&#60;br /&#62;
    }&#60;/p&#62;
&#60;p&#62;    if ($post-&#38;gt;post_type == 'page' &#124;&#124; is_404()) {&#60;br /&#62;
        $postheader = $posttitle;&#60;br /&#62;
    } else {&#60;br /&#62;
        $postheader = $postmeta . $posttitle;&#60;br /&#62;
    }&#60;br /&#62;
    echo $postheader;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;add_filter( 'thematic_postheader', 'childtheme_postheader' );&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
Then styled it all as such:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
body {&#60;br /&#62;
font-family: Frutiger, &#34;Frutiger Linotype&#34;, Univers, Calibri, &#34;Gill Sans&#34;, &#34;Gill Sans MT&#34;, &#34;Myriad Pro&#34;, Myriad, &#34;DejaVu Sans Condensed&#34;, &#34;Liberation Sans&#34;, &#34;Nimbus Sans L&#34;, Tahoma, Geneva, &#34;Helvetica Neue&#34;, Helvetica, Arial, sans-serif;&#60;br /&#62;
color: #444;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;#blog-title, .entry-title {&#60;br /&#62;
font-family: Frutiger, &#34;Frutiger Linotype&#34;, Univers, Calibri, &#34;Gill Sans&#34;, &#34;Gill Sans MT&#34;, &#34;Myriad Pro&#34;, Myriad, &#34;DejaVu Sans Condensed&#34;, &#34;Liberation Sans&#34;, &#34;Nimbus Sans L&#34;, Tahoma, Geneva, &#34;Helvetica Neue&#34;, Helvetica, Arial, sans-serif;&#60;br /&#62;
font-weight: normal;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/* Post entry_meta date and title in calendar format */&#60;/p&#62;
&#60;p&#62;.entry-meta {&#60;br /&#62;
float:left;&#60;br /&#62;
display:inline;&#60;br /&#62;
width: 60px;&#60;br /&#62;
text-align:right;&#60;br /&#62;
line-height:.95;&#60;br /&#62;
border:1px solid #eee;&#60;br /&#62;
margin:0 15px 20px 0;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;.entry-meta span{&#60;br /&#62;
 display:block;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;.post_date_day_of_week {&#60;br /&#62;
font-size:150%;&#60;br /&#62;
color:#ccc;&#60;br /&#62;
padding:3px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;.post_date_day_of_week {&#60;br /&#62;
font-size:110%;&#60;br /&#62;
color:#aaa;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;.post_date_month {&#60;br /&#62;
font-size:175%;&#60;br /&#62;
padding:0 3px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;.post_date_day {&#60;br /&#62;
font-size:450%;&#60;br /&#62;
font-weight:700;&#60;br /&#62;
padding:0 3px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;.post_date_year {&#60;br /&#62;
font-size:150%;&#60;br /&#62;
background:#999;&#60;br /&#62;
color:#eee;&#60;br /&#62;
margin:2px 0 0 0;&#60;br /&#62;
padding:3px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;.entry-title_box, .entry-content, .entry-utility {&#60;br /&#62;
float:right;&#60;br /&#62;
display:inline;&#60;br /&#62;
width: 450px;&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
And it looks great:&#60;/p&#62;
&#60;p&#62;Screenshot (while logged in, thus the Edit link at the bottom): &#60;a href=&#34;http://artbycas.com/images/post_date.png&#34; rel=&#34;nofollow&#34;&#62;http://artbycas.com/images/post_date.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;As far as I can tell, I got it to work the way I want to; I'm just not sure if the code I cobbled together from many different sources is written in the most efficient way possible - I could be totally butchering it. Any insights as to if there's a better way to do this are appreciated.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
