<?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: date</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 04 Feb 2012 03:54:31 +0000</pubDate>

<item>
<title>Andrew on "Revision 347 - Modify time / date format in post meta"</title>
<link>http://themeshaper.com/forums/topic/revision-347-modify-time-date-format-in-post-meta#post-23108</link>
<pubDate>Thu, 15 Sep 2011 14:40:27 +0000</pubDate>
<dc:creator>Andrew</dc:creator>
<guid isPermaLink="false">23108@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ah,  That sounds just about perfect.  Thanks Middlesister!
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Revision 347 - Modify time / date format in post meta"</title>
<link>http://themeshaper.com/forums/topic/revision-347-modify-time-date-format-in-post-meta#post-23089</link>
<pubDate>Wed, 14 Sep 2011 20:50:48 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">23089@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm think you need to override or filter the whole of postmeta_entrydate and call &#60;code&#62;get_the_time(&#38;#39;M&#38;#39;)&#60;/code&#62;, &#60;code&#62;get_the_time(&#38;#39;d&#38;#39;)&#60;/code&#62; and &#60;code&#62;get_the_time(&#38;#39;Y&#38;#39;)&#60;/code&#62; separately within the spans you need.
&#60;/p&#62;</description>
</item>
<item>
<title>Andrew on "Revision 347 - Modify time / date format in post meta"</title>
<link>http://themeshaper.com/forums/topic/revision-347-modify-time-date-format-in-post-meta#post-23082</link>
<pubDate>Wed, 14 Sep 2011 20:04:53 +0000</pubDate>
<dc:creator>Andrew</dc:creator>
<guid isPermaLink="false">23082@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Handy Filter Chris!  Thanks.&#60;br /&#62;
One question though.  How might it be possible I could wrap some div's around the Time/date output. For styling purposes.  I want to have the month/day/year all be stacked vertically and I need to apply some &#38;lt;span&#38;gt;&#38;lt;/span&#38;gt; or classes.  &#60;/p&#62;
&#60;p&#62;I've tried applying some class in the&#60;br /&#62;
&#60;code&#62;return &#38;#39;M d Y&#38;#39;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;But they create some whacky output as I don't think I'm allowed to add any html in here. &#60;/p&#62;
&#60;p&#62;Any tips?
&#60;/p&#62;</description>
</item>
<item>
<title>uranbold on "Changing format of post date"</title>
<link>http://themeshaper.com/forums/topic/changing-format-of-post-date#post-22093</link>
<pubDate>Thu, 30 Jun 2011 07:53:56 +0000</pubDate>
<dc:creator>uranbold</dc:creator>
<guid isPermaLink="false">22093@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;What about The A Day go, 1 minute ago, 5 sec ago Like Facebook and like Mashable.com.
&#60;/p&#62;</description>
</item>
<item>
<title>keco86 on "changing date format"</title>
<link>http://themeshaper.com/forums/topic/changing-date-format#post-20750</link>
<pubDate>Thu, 21 Apr 2011 17:36:01 +0000</pubDate>
<dc:creator>keco86</dc:creator>
<guid isPermaLink="false">20750@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You're brilliant. Now how might one add html code to this bit?&#60;br /&#62;
 	$time_title = 'M d y';&#60;/p&#62;
&#60;p&#62;Basically I need spans around the month and date and year so that I can style each separately.
&#60;/p&#62;</description>
</item>
<item>
<title>greyhavns on "changing date format"</title>
<link>http://themeshaper.com/forums/topic/changing-date-format#post-19396</link>
<pubDate>Sun, 27 Feb 2011 19:11:18 +0000</pubDate>
<dc:creator>greyhavns</dc:creator>
<guid isPermaLink="false">19396@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i figured it out&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_postmeta_entrydate(){
	$today = date(&#38;quot;M d&#38;quot;);
	$entrydate .= &#38;#39;&#38;lt;div class=&#38;quot;entry-date&#38;quot;&#38;gt;&#38;lt;abbr class=&#38;quot;published&#38;quot; title=&#38;quot;&#38;#39;;
	$entrydate .= get_the_time(thematic_time_title()) . &#38;#39;&#38;quot;&#38;gt;&#38;#39;;
	$entrydate .= get_the_time(childtheme_override_time_display());
	$entrydate .= &#38;#39;&#38;lt;/abbr&#38;gt;&#38;lt;/div&#38;gt;&#38;#39;;

	return apply_filters(&#38;#39;thematic_post_meta_entrydate&#38;#39;, $entrydate);
}
// Filter to create the time url title displayed in Post Header
function childtheme_override_time_display() {

	$time_title = &#38;#39;M d&#38;#39;;

	// Filters should return correct
	$time_title = apply_filters(&#38;#39;thematic_time_title&#38;#39;, $time_title);

	return $time_title;
} // end time_title&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>greyhavns on "changing date format"</title>
<link>http://themeshaper.com/forums/topic/changing-date-format#post-19393</link>
<pubDate>Sun, 27 Feb 2011 18:58:12 +0000</pubDate>
<dc:creator>greyhavns</dc:creator>
<guid isPermaLink="false">19393@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I want to change the date format for my post header.  currently its set in my preferences at m.d.y but i just want to display in my design date(&#34;M d&#34;); = FEB 27&#60;/p&#62;
&#60;p&#62;how do i override thematic's time display function to handle my date.&#60;/p&#62;
&#60;p&#62;function thematic_time_display() {&#60;br /&#62;
	$time_display = get_option('date_format');&#60;br /&#62;
	// Filters should return correct&#60;br /&#62;
	$time_display = apply_filters('thematic_time_display', $time_display);&#60;br /&#62;
	return $time_display;&#60;br /&#62;
} // end time_display
&#60;/p&#62;</description>
</item>
<item>
<title>darrenc on "correct  use of thematic_postmeta_entrydate()"</title>
<link>http://themeshaper.com/forums/topic/correct-use-of-thematic_postmeta_entrydate#post-18860</link>
<pubDate>Mon, 31 Jan 2011 22:42:38 +0000</pubDate>
<dc:creator>darrenc</dc:creator>
<guid isPermaLink="false">18860@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;pictrix i understand now why this approach doesn't work as expected. thanks to helgatheviking, i worked through it &#60;a href=&#34;http://themeshaper.com/forums/topic/different-code-on-different-category-archives-conceptual-problem-narrow-target#post-18859&#34;&#62;here&#60;/a&#62; hopefully showing it more clarity/detail.&#60;/p&#62;
&#60;p&#62;by using the code&#60;/p&#62;
&#60;pre&#62;add_filter('thematic_postheader_postmeta','my_postmeta_entrydate');&#60;/pre&#62;
&#60;p&#62;JC is replacing the entire &#60;a href=&#34;http://www.google.com/codesearch/p?hl=en#-6gvQ8rVyts/trunk/library/extensions/content-extensions.php&#38;#38;q=thematic_postheader_postmeta%20package:http://thematic\.googlecode\.com&#38;#38;l=715&#34;&#62;thematic_postheader_postmeta&#60;/a&#62;... which includes the opening div, authorlink, seperators, entrydate, editlink, and closing div.&#60;/p&#62;
&#60;p&#62;if you &#60;a href=&#34;http://www.google.com/codesearch/p?hl=en#-6gvQ8rVyts/trunk/library/extensions/content-extensions.php&#38;#38;q=thematic_postmeta_entrydate%20package:http://thematic\.googlecode\.com&#38;#38;sa=N&#38;#38;cd=1&#38;#38;ct=rc&#38;#38;l=761&#34;&#62;follow the entrydate function&#60;/a&#62; to its origin you can find that the filter you need to use to replace JUST the date is actually &#34;thematic_post_meta_entrydate&#34;&#60;/p&#62;
&#60;p&#62;given that, here is the code to specifically target just the date&#60;/p&#62;
&#60;pre&#62;
function my_postmeta_entrydate($entrydate) {
    $entrydate = '&#38;lt;span class=&#34;entry-date&#34;&#38;gt;&#38;lt;abbr class=&#34;published&#34; title=&#34;';
    $entrydate .= get_the_time(thematic_time_title()) . '&#34;&#38;gt;';
    $entrydate .= '&#38;lt;span class=&#34;month&#34;&#38;gt;' . get_the_time('M') . '&#38;lt;/span&#38;gt;';
    $entrydate .= '&#38;lt;span class=&#34;day&#34;&#38;gt;' . get_the_time('d') . '&#38;lt;/span&#38;gt;';
    $entrydate .= '&#38;lt;span class=&#34;year&#34;&#38;gt;' . get_the_time('Y') . '&#38;lt;/span&#38;gt;';
    $entrydate .= '&#38;lt;/abbr&#38;gt;&#38;lt;/span&#38;gt;';
    return $entrydate;
} // end my_postmeta_entrydate()
add_filter('thematic_post_meta_entrydate','my_postmeta_entrydate');
&#60;/pre&#62;</description>
</item>
<item>
<title>raora02 on "How to display date just once for multiple posts"</title>
<link>http://themeshaper.com/forums/topic/how-to-display-date-just-once-for-multiple-posts#post-18578</link>
<pubDate>Fri, 21 Jan 2011 23:21:14 +0000</pubDate>
<dc:creator>raora02</dc:creator>
<guid isPermaLink="false">18578@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I want to display the date just once for multiple posts made on the same date.  Ideally, I want to display the date at the top of the first post made for that day.  How to do this?  Can someone give me examples?&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
</item>
<item>
<title>yilmaznakliyat on "Adding date to postfooter"</title>
<link>http://themeshaper.com/forums/topic/adding-date-to-postfooter#post-17617</link>
<pubDate>Wed, 08 Dec 2010 11:06:55 +0000</pubDate>
<dc:creator>yilmaznakliyat</dc:creator>
<guid isPermaLink="false">17617@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;thanks.very good information.
&#60;/p&#62;</description>
</item>
<item>
<title>agentOOjoe on "View EXPANDED posts by date"</title>
<link>http://themeshaper.com/forums/topic/view-expanded-posts-by-date#post-17147</link>
<pubDate>Sat, 20 Nov 2010 06:57:25 +0000</pubDate>
<dc:creator>agentOOjoe</dc:creator>
<guid isPermaLink="false">17147@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;THANK YOU SO MUCH! This has been driving me crazy.
&#60;/p&#62;</description>
</item>
<item>
<title>Vasudeva Adiga on "View EXPANDED posts by date"</title>
<link>http://themeshaper.com/forums/topic/view-expanded-posts-by-date#post-17144</link>
<pubDate>Sat, 20 Nov 2010 06:11:35 +0000</pubDate>
<dc:creator>Vasudeva Adiga</dc:creator>
<guid isPermaLink="false">17144@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;If you are writing a child theme, you need to write a function named childtheme_override_content_init() in your functions.php.&#60;/p&#62;
&#60;p&#62;If you want to modify thematic itself to show full posts, you need to change the following line in library&#38;gt;extensions&#38;gt;content-extensions.php:&#60;/p&#62;
&#60;p&#62;elseif (is_archive()) {&#60;br /&#62;
			$content = 'excerpt';&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;to &#60;/p&#62;
&#60;p&#62;elseif (is_archive()) {&#60;br /&#62;
			$content = 'full';&#60;br /&#62;
		}
&#60;/p&#62;</description>
</item>
<item>
<title>agentOOjoe on "View EXPANDED posts by date"</title>
<link>http://themeshaper.com/forums/topic/view-expanded-posts-by-date#post-17134</link>
<pubDate>Fri, 19 Nov 2010 22:29:01 +0000</pubDate>
<dc:creator>agentOOjoe</dc:creator>
<guid isPermaLink="false">17134@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
When I click on the wordpress calendar and all the posts from that day show up, I can only see the post title, and the date and comments links underneath. I am trying to figure out how to have the post content visible, so the entire post can be seen for every post on each day. Anyone know how?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Joe
&#60;/p&#62;</description>
</item>
<item>
<title>Iceman on "Show image to category"</title>
<link>http://themeshaper.com/forums/topic/show-image-to-category#post-15848</link>
<pubDate>Mon, 27 Sep 2010 03:32:11 +0000</pubDate>
<dc:creator>Iceman</dc:creator>
<guid isPermaLink="false">15848@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello, my first post, hope my english is understandable ;)&#60;br /&#62;
I'd like to make some kind of customization at date entry, putting it in a box, floating left at the post, this is not really hard, i've done something like yet.&#60;/p&#62;
&#60;p&#62;But i'd like to show an image that explain about the post, similar to this&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.ndesign-studio.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.ndesign-studio.com/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;For each kind of content, the image over the date is different, for example, to video post, or news, tutorials, each one with his own icon.&#60;/p&#62;
&#60;p&#62;I was thinking in put the .entry-meta background:url pointing to the image, but there's easy way to call each one specifically to the category of the post?&#60;/p&#62;
&#60;p&#62;Sorry again (i know, my english is worst than my knowledge in Thematic), hope someone could give some idea. Thx
&#60;/p&#62;</description>
</item>
<item>
<title>s1m0nb on "Calendar style date?"</title>
<link>http://themeshaper.com/forums/topic/calendar-style-date#post-14224</link>
<pubDate>Sat, 31 Jul 2010 18:44:35 +0000</pubDate>
<dc:creator>s1m0nb</dc:creator>
<guid isPermaLink="false">14224@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ah ok. Thanks for the tip. I'll have a look into what you suggested. =]
&#60;/p&#62;</description>
</item>
<item>
<title>tarpontech on "Calendar style date?"</title>
<link>http://themeshaper.com/forums/topic/calendar-style-date#post-14209</link>
<pubDate>Fri, 30 Jul 2010 22:33:23 +0000</pubDate>
<dc:creator>tarpontech</dc:creator>
<guid isPermaLink="false">14209@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You'd need to integrate the code example from the link above, specifically the div structure with php date code, into a filter for use on the postmeta.  If you dig into the forum search looking for code examples of doing postheader filter or postmeta filter, you should come across a couple workable examples to help you wrap your head around what you need to do.&#60;/p&#62;
&#60;p&#62;If you look in /thematic/library/extensions/content_extensions.php, and find the code block dealing with the postheader postmeta, You'll see how the time/date information is added to a default thematic post, and from there give you an idea of how to structure your filter to replace the default date style with your custom stuff.
&#60;/p&#62;</description>
</item>
<item>
<title>s1m0nb on "Calendar style date?"</title>
<link>http://themeshaper.com/forums/topic/calendar-style-date#post-14198</link>
<pubDate>Fri, 30 Jul 2010 13:15:49 +0000</pubDate>
<dc:creator>s1m0nb</dc:creator>
<guid isPermaLink="false">14198@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I've trying to find out how to set up a calendar style post date. An example of this can be found here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.penfold.gtzero.com/calendar-style-date-for-wordpress/&#34; rel=&#34;nofollow&#34;&#62;http://www.penfold.gtzero.com/calendar-style-date-for-wordpress/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I can't find anywhere that gives any info on how to do with thematic.&#60;/p&#62;
&#60;p&#62;Any help would be much appreciated. =]
&#60;/p&#62;</description>
</item>
<item>
<title>Bennyboy on "Post date problem"</title>
<link>http://themeshaper.com/forums/topic/post-date-problem#post-13909</link>
<pubDate>Thu, 15 Jul 2010 10:34:33 +0000</pubDate>
<dc:creator>Bennyboy</dc:creator>
<guid isPermaLink="false">13909@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Right, of course, as soon as I posted this I found out the problem - it's another plugin causing the issue. I'll have to see if I can fix it!
&#60;/p&#62;</description>
</item>
<item>
<title>Bennyboy on "Post date problem"</title>
<link>http://themeshaper.com/forums/topic/post-date-problem#post-13908</link>
<pubDate>Thu, 15 Jul 2010 10:08:06 +0000</pubDate>
<dc:creator>Bennyboy</dc:creator>
<guid isPermaLink="false">13908@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi, hope someone can point out where I'm going wrong!&#60;/p&#62;
&#60;p&#62;I'm using a text widget to add posts in a category to the sidebar on the front page. All works fine, except for the date, it defaults to November 2009, for some reason.&#60;/p&#62;
&#60;p&#62;Here's the code - I'm a PHP newbie really, so I've just been piecing bits of code together, apologies if it's nasty!&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;work&#38;quot;&#38;gt;
&#38;lt;h2 class=&#38;quot;latest&#38;quot;&#38;gt;What&#38;#39;s happening today?&#38;lt;/h2&#38;gt;
&#38;lt;?php $recent = new WP_Query(); ?&#38;gt;
&#38;lt;?php $recent-&#38;gt;query(&#38;#39;cat=21&#38;#38;showposts=3&#38;#39;); ?&#38;gt;
&#38;lt;?php while($recent-&#38;gt;have_posts()) : $recent-&#38;gt;the_post(); ?&#38;gt;
&#38;lt;ul class=&#38;quot;side_news&#38;quot;&#38;gt;
	&#38;lt;li&#38;gt;
            &#38;lt;div class=&#38;quot;side_title&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/div&#38;gt;
	    &#38;lt;div class=&#38;quot;side_content&#38;quot;&#38;gt;&#38;lt;?php the_content(); ?&#38;gt;&#38;lt;/div&#38;gt;
            &#38;lt;div class=&#38;quot;side_time&#38;quot;&#38;gt; Posted on &#38;lt;?php the_time(&#38;#39;d/m/Y&#38;#39;); ?&#38;gt;&#38;lt;/div&#38;gt;
       &#38;lt;/li&#38;gt;
&#38;lt;/ul&#38;gt;
&#38;lt;?php endwhile; ?&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Hope that makes sense and some kind soul can give me a helping hand!&#60;/p&#62;
&#60;p&#62;cheers&#60;br /&#62;
Benny
&#60;/p&#62;</description>
</item>
<item>
<title>keco86 on "Publish Date not displaying correctly"</title>
<link>http://themeshaper.com/forums/topic/publish-date-not-displaying-correctly#post-13355</link>
<pubDate>Thu, 24 Jun 2010 17:19:09 +0000</pubDate>
<dc:creator>keco86</dc:creator>
<guid isPermaLink="false">13355@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi There.&#60;br /&#62;
I have something odd in my child theme on this blog:&#60;br /&#62;
&#60;a href=&#34;http://blog.homeworksetcdesigns.com&#34; rel=&#34;nofollow&#34;&#62;http://blog.homeworksetcdesigns.com&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The publish dates are all showing as June 6th though the title says the correct publish dates. Why are they not being written out?&#60;/p&#62;
&#60;p&#62;I have not changed anything in the original install.
&#60;/p&#62;</description>
</item>
<item>
<title>Pictrix on "correct  use of thematic_postmeta_entrydate()"</title>
<link>http://themeshaper.com/forums/topic/correct-use-of-thematic_postmeta_entrydate#post-13124</link>
<pubDate>Tue, 15 Jun 2010 23:32:15 +0000</pubDate>
<dc:creator>Pictrix</dc:creator>
<guid isPermaLink="false">13124@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I was trying to do exactly the same without success: When apply the filter described above to my functions.php,only the date is displayed and both the author and the edit links disappear.  &#60;/p&#62;
&#60;p&#62;I know about Ian's working filter for the postheader, but I am trying to understand why this approach doesn't work.  Any insight will be appreciated, since I'm new to PHP.
&#60;/p&#62;</description>
</item>
<item>
<title>sleahcim on "help with functions for child theme"</title>
<link>http://themeshaper.com/forums/topic/help-with-functions-for-child-theme#post-12951</link>
<pubDate>Wed, 09 Jun 2010 19:41:10 +0000</pubDate>
<dc:creator>sleahcim</dc:creator>
<guid isPermaLink="false">12951@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Okay, I finally figured it out. At least for my particular need. I commented out:&#60;br /&#62;
&#60;code&#62;else {&#60;br /&#62;
    	   $postmeta= ' &#38;lt;span class=&#34;comment&#34;&#38;gt;' . __('Comments closed', 'thematic') .'&#38;lt;/span&#38;gt;';&#60;br /&#62;
    	}&#60;/code&#62;&#60;br /&#62;
in the junction_postheader function. This gave me a date in a post that has comments turned off.
&#60;/p&#62;</description>
</item>
<item>
<title>sleahcim on "help with functions for child theme"</title>
<link>http://themeshaper.com/forums/topic/help-with-functions-for-child-theme#post-12945</link>
<pubDate>Wed, 09 Jun 2010 18:08:29 +0000</pubDate>
<dc:creator>sleahcim</dc:creator>
<guid isPermaLink="false">12945@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks helgatheviking. &#60;/p&#62;
&#60;p&#62;I finally had a chance to get back to this project and tried your suggestion. No go. It was worth a try though. Still looking for an answer if you think of anything.
&#60;/p&#62;</description>
</item>
<item>
<title>arveerella on "how do i get to show the comments number in the post meta?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-get-to-show-the-comments-number-in-the-post-meta#post-12611</link>
<pubDate>Wed, 26 May 2010 00:57:55 +0000</pubDate>
<dc:creator>arveerella</dc:creator>
<guid isPermaLink="false">12611@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i only wanted the date, and the comments number in entry-meta, as well as the the edit link...
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "help with functions for child theme"</title>
<link>http://themeshaper.com/forums/topic/help-with-functions-for-child-theme#post-12476</link>
<pubDate>Wed, 19 May 2010 13:08:46 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">12476@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i dont know about the aether child theme... but why take a look at the original thematic function for postheaders (in the thematic/extensions folder).  i believe that the default behavior of thematic is to always show the date, so maybe you just need to delete this function from your child theme.  you can test that by just commenting out your add_filter line.&#60;/p&#62;
&#60;p&#62;//add_filter ('thematic_postheader', 'junction_postheader'); // Crazy important!
&#60;/p&#62;</description>
</item>
<item>
<title>sleahcim on "help with functions for child theme"</title>
<link>http://themeshaper.com/forums/topic/help-with-functions-for-child-theme#post-12471</link>
<pubDate>Wed, 19 May 2010 05:24:29 +0000</pubDate>
<dc:creator>sleahcim</dc:creator>
<guid isPermaLink="false">12471@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I've been hacking away at the Aether child theme and have been able to shape it into what I want except for one thing: I want the date to show on all posts, including those that &#34;allow comments&#34; have been turned off. &#60;/p&#62;
&#60;p&#62;I've tried several ways to get this to work and cannot figure out what I'm doing wrong. &#60;/p&#62;
&#60;p&#62;Here's the function that contains the relevant php:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;// Change the Postheader&#60;br /&#62;
function junction_postheader() {&#60;br /&#62;
    global $post, $authordata,$id;&#60;/p&#62;
&#60;p&#62;    //create the edit-link&#60;br /&#62;
    $posteditlink .= '&#38;lt;span class=&#34;edit-link&#34;&#38;gt;&#38;lt;a href=&#34;' . get_bloginfo('wpurl') . '/wp-admin/post.php?action=edit&#38;amp;post=' . $id;&#60;br /&#62;
    $posteditlink .= '&#34; title=&#34;' . __('Edit post', 'thematic') .'&#34;&#38;gt;';&#60;br /&#62;
    $posteditlink .= __('Edit', 'thematic') . '&#38;lt;/span&#38;gt;';&#60;/p&#62;
&#60;p&#62;    if (is_single() &#124;&#124; is_page()) {&#60;br /&#62;
        $posttitle = '&#38;lt;h1 class=&#34;entry-title&#34;&#38;gt;' . get_the_title() . &#34;&#38;lt;/h1&#38;gt;\n&#34;;&#60;br /&#62;
    	$postmeta = '&#38;lt;div class=&#34;entry-meta&#34;&#38;gt;';&#60;br /&#62;
		$postmeta .= '&#38;lt;div class=&#34;post-date&#34;&#38;gt;';&#60;br /&#62;
    	$postmeta .= '&#38;lt;span class=&#34;post-day&#34;&#38;gt;';&#60;br /&#62;
		$postmeta .= get_the_time('d');&#60;br /&#62;
    	$postmeta .= '&#38;lt;/span&#38;gt;';&#60;br /&#62;
    	$postmeta .= '&#38;lt;span class=&#34;post-month&#34;&#38;gt;';&#60;br /&#62;
    	$postmeta .= get_the_time('M');&#60;br /&#62;
    	$postmeta .= '&#38;lt;/span&#38;gt;';&#60;br /&#62;
    	$postmeta .= '&#38;lt;span class=&#34;post-year&#34;&#38;gt;';&#60;br /&#62;
    	$postmeta .= get_the_time('Y');&#60;br /&#62;
    	$postmeta .= '&#38;lt;/span&#38;gt;';&#60;br /&#62;
        if (current_user_can('edit_posts')) {&#60;br /&#62;
    	    $postmeta .= $posteditlink;&#60;br /&#62;
    	}&#60;br /&#62;
    	$postmeta .= &#34;&#38;lt;/div&#38;gt;&#38;lt;!-- .post-date --&#38;gt;\n&#34;;&#60;br /&#62;
		$postmeta .= &#34;&#38;lt;/div&#38;gt;&#38;lt;!-- .entry-meta --&#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;div class=&#34;post-title&#34;&#38;gt;';&#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;span class='readmore'&#38;gt; ... &#38;lt;/span&#38;gt; &#38;lt;/h2&#38;gt;\n&#34;;&#60;br /&#62;
        $posttitle .= '&#38;lt;/div&#38;gt;';&#60;/p&#62;
&#60;p&#62;    	$postmeta = '&#38;lt;div class=&#34;entry-meta&#34;&#38;gt;';&#60;br /&#62;
		$postmeta .= '&#38;lt;div class=&#34;post-date&#34;&#38;gt;';&#60;br /&#62;
    	$postmeta .= '&#38;lt;span class=&#34;post-day&#34;&#38;gt;';&#60;br /&#62;
		$postmeta .= get_the_time('d');&#60;br /&#62;
    	$postmeta .= '&#38;lt;/span&#38;gt;';&#60;br /&#62;
    	$postmeta .= '&#38;lt;span class=&#34;post-month&#34;&#38;gt;';&#60;br /&#62;
    	$postmeta .= get_the_time('M');&#60;br /&#62;
    	$postmeta .= '&#38;lt;/span&#38;gt;';&#60;br /&#62;
    	$postmeta .= '&#38;lt;span class=&#34;post-year&#34;&#38;gt;';&#60;br /&#62;
    	$postmeta .= get_the_time('Y');&#60;br /&#62;
    	$postmeta .= '&#38;lt;/span&#38;gt;';&#60;/p&#62;
&#60;p&#62;		if (comments_open()) {&#60;br /&#62;
    	    $postcommentnumber = get_comments_number();&#60;br /&#62;
    	    if ($postcommentnumber &#38;gt; '1') {&#60;br /&#62;
    	        $postmeta .= ' &#38;lt;span class=&#34;comment&#34;&#38;gt;&#60;a href=&#34;' . get_permalink() . '#comments&#34; title=&#34;' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '&#34;&#62;';&#60;br /&#62;
    	        $postmeta .= get_comments_number() . __(' Comments', 'thematic') . '&#60;/a&#62;&#38;lt;/span&#38;gt;';&#60;br /&#62;
    	    } elseif ($postcommentnumber == '1') {&#60;br /&#62;
    	        $postmeta .= ' &#38;lt;span class=&#34;comment&#34;&#38;gt;&#60;a href=&#34;' . get_permalink() . '#comments&#34; title=&#34;' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '&#34;&#62;';&#60;br /&#62;
    	        $postmeta .= get_comments_number() . __(' Comment', 'thematic') . '&#60;/a&#62;&#38;lt;/span&#38;gt;';&#60;br /&#62;
    	    } elseif ($postcommentnumber == '0') {&#60;br /&#62;
    	        $postmeta .= ' &#38;lt;span class=&#34;comment&#34;&#38;gt;&#60;a href=&#34;' . get_permalink() . '#comments&#34; title=&#34;' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '&#34;&#62;';&#60;br /&#62;
    	        $postmeta .= __('Leave a comment', 'thematic') . '&#60;/a&#62;&#38;lt;/span&#38;gt;';&#60;br /&#62;
    	    }&#60;br /&#62;
    	} else {&#60;br /&#62;
    	    $postmeta= ' &#38;lt;span class=&#34;comment&#34;&#38;gt;' . __('Comments closed', 'thematic') .'&#38;lt;/span&#38;gt;';&#60;br /&#62;
    	}&#60;br /&#62;
        if (current_user_can('edit_posts')) {&#60;br /&#62;
    	     $postmeta .= $posteditlink;&#60;br /&#62;
        }&#60;br /&#62;
        $postmeta .= &#34;&#38;lt;/div&#38;gt;&#38;lt;!-- .post-date --&#38;gt;\n&#34;;&#60;br /&#62;
	    $postmeta .= &#34;&#38;lt;/div&#38;gt;&#38;lt;!-- .entry-meta --&#38;gt;\n&#34;;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	$postheader = $posttitle . $postmeta;&#60;/p&#62;
&#60;p&#62;    if ($post-&#38;gt;post_type == 'page' &#124;&#124; is_404()) {&#60;br /&#62;
        $postheader = $posttitle . $postmeta;&#60;br /&#62;
    } else {&#60;br /&#62;
        $postheader = $posttitle . $postmeta;&#60;br /&#62;
    }&#60;br /&#62;
    echo apply_filters( 'junction_postheader', $postheader ); // Filter to override default post header&#60;br /&#62;
}&#60;br /&#62;
add_filter ('thematic_postheader', 'junction_postheader'); // Crazy important!&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Any help would be greatly appreciated.
&#60;/p&#62;</description>
</item>
<item>
<title>rogierz on "How to integrate date into content"</title>
<link>http://themeshaper.com/forums/topic/how-to-integrate-date-into-content#post-11915</link>
<pubDate>Sun, 25 Apr 2010 13:26:07 +0000</pubDate>
<dc:creator>rogierz</dc:creator>
<guid isPermaLink="false">11915@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm trying to extract the date from the post meta, and to use it as the first item of the content. This should be the result:&#60;/p&#62;
&#60;p&#62;25 april 2010 - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus feugiat lectus tempus urna tincidunt convallis. Etiam ut mi nunc, a fringilla libero.&#60;/p&#62;
&#60;p&#62;I've tried to shuffle around and combine some lines in content-extensions.php but I cannot make this happen. Can someone help me out?&#60;/p&#62;
&#60;p&#62;Thanks a lot!
&#60;/p&#62;</description>
</item>
<item>
<title>JC on "correct  use of thematic_postmeta_entrydate()"</title>
<link>http://themeshaper.com/forums/topic/correct-use-of-thematic_postmeta_entrydate#post-10818</link>
<pubDate>Thu, 18 Mar 2010 20:20:15 +0000</pubDate>
<dc:creator>JC</dc:creator>
<guid isPermaLink="false">10818@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ok,    to self:  remember  to better read the docs  ....&#60;/p&#62;
&#60;p&#62;This  achieved  what  I was looking  for&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function my_postmeta_entrydate() {

    $entrydate .= &#38;#39;&#38;lt;span class=&#38;quot;entry-date&#38;quot;&#38;gt;&#38;lt;abbr class=&#38;quot;published&#38;quot; title=&#38;quot;&#38;#39;;
    $entrydate .= get_the_time(thematic_time_title()) . &#38;#39;&#38;quot;&#38;gt;&#38;#39;;
    $entrydate .= &#38;#39;&#38;lt;span class=&#38;quot;month&#38;quot;&#38;gt;&#38;#39; . get_the_time(&#38;#39;M&#38;#39;) . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    $entrydate .= &#38;#39;&#38;lt;span class=&#38;quot;day&#38;quot;&#38;gt;&#38;#39; . get_the_time(&#38;#39;d&#38;#39;) . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    $entrydate .= &#38;#39;&#38;lt;span class=&#38;quot;year&#38;quot;&#38;gt;&#38;#39; . get_the_time(&#38;#39;Y&#38;#39;) . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    $entrydate .= &#38;#39;&#38;lt;/abbr&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;;

    return apply_filters(&#38;#39;thematic_post_meta_entrydate&#38;#39;, $entrydate);

} // end my_postmeta_entrydate()

add_filter(&#38;#39;thematic_postheader_postmeta&#38;#39;,&#38;#39;my_postmeta_entrydate&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then I could format the  date the way I wanted with  css to  achieve something like this:&#60;/p&#62;
&#60;p&#62;FEB&#60;br /&#62;
15&#60;br /&#62;
2010&#60;/p&#62;
&#60;p&#62;Hope this  helps somebody,  and spares  hours of research&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>JC on "correct  use of thematic_postmeta_entrydate()"</title>
<link>http://themeshaper.com/forums/topic/correct-use-of-thematic_postmeta_entrydate#post-10814</link>
<pubDate>Thu, 18 Mar 2010 17:23:53 +0000</pubDate>
<dc:creator>JC</dc:creator>
<guid isPermaLink="false">10814@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I putting this  again here  because last thread   was already closed,  sorry&#60;/p&#62;
&#60;p&#62;Hi !&#60;br /&#62;
Thank you Ian and Chris , I'am enjoying using Thematic, and it makes me use my brains ;-)&#60;/p&#62;
&#60;p&#62;So now that thematic_postmeta_entrydate() has been implemented I'am trying to style by applying a filter but with no success so far (sorry I'm not very good at coding)&#60;br /&#62;
This is what I tryied so far :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Add a custom post meta entry date

function my_postheader_date() {

global $post; ?&#38;gt;

&#38;lt;span class=&#38;quot;entry-date&#38;quot;&#38;gt;
&#38;lt;span class=&#38;quot;month&#38;quot;&#38;gt;&#38;lt;?php the_time(&#38;#39;M&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;
&#38;lt;span class=&#38;quot;day&#38;quot;&#38;gt;&#38;lt;?php the_time(&#38;#39;d&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;
&#38;lt;/span&#38;gt;

&#38;lt;?php add_filter(&#38;#39;thematic_postmeta_entrydate&#38;#39;,&#38;#39;my_postheader_date&#38;#39;);

} ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but no luck :(&#60;br /&#62;
Someone please could take a look and direct me to the solution ?&#60;/p&#62;
&#60;p&#62;Thanks a lot
&#60;/p&#62;</description>
</item>
<item>
<title>JC on "Changing format of post date"</title>
<link>http://themeshaper.com/forums/topic/changing-format-of-post-date#post-10810</link>
<pubDate>Thu, 18 Mar 2010 16:17:13 +0000</pubDate>
<dc:creator>JC</dc:creator>
<guid isPermaLink="false">10810@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi !&#60;br /&#62;
Thank you Ian and Chris  , I'am enjoying using Thematic,  and it makes  me use my brains ;-)&#60;/p&#62;
&#60;p&#62;I'am trying to style the date just like Heather  (from  this thread's beginning)&#60;br /&#62;
So now that  thematic_postmeta_entrydate()  has been   implemented I'am  trying to  style  by applying a filter  but  with no success so far  (sorry  I'm  not very  good  at coding)&#60;br /&#62;
This is what  I tryied  so far  :&#60;/p&#62;
&#60;p&#62;// Add a custom post meta entry date&#60;/p&#62;
&#60;p&#62;function my_postheader_date() { &#60;/p&#62;
&#60;p&#62;global $post; ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;span class=&#34;entry-date&#34;&#38;gt;&#60;br /&#62;
&#38;lt;span class=&#34;month&#34;&#38;gt;&#38;lt;?php the_time('M') ?&#38;gt;&#38;lt;/span&#38;gt;&#60;br /&#62;
&#38;lt;span class=&#34;day&#34;&#38;gt;&#38;lt;?php the_time('d') ?&#38;gt;&#38;lt;/span&#38;gt;&#60;br /&#62;
&#38;lt;/span&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php add_filter('thematic_postmeta_entrydate','my_postheader_date');&#60;/p&#62;
&#60;p&#62;} ?&#38;gt;&#60;/p&#62;
&#60;p&#62;but no luck :(&#60;br /&#62;
Someone please could  take a look  and  direct me to the solution ? &#60;/p&#62;
&#60;p&#62;Thanks a lot !
&#60;/p&#62;</description>
</item>

</channel>
</rss>

