<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Disable date displayer with a custom field</title>
		<link>http://www.kriesi.at/support/topic/disable-date-displayer-with-a-custom-field</link>
		<description>Support Forum - Topic: Disable date displayer with a custom field</description>
		<language>en-US</language>
		<pubDate>Wed, 22 May 2013 21:24:35 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/disable-date-displayer-with-a-custom-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Ismael on "Disable date displayer with a custom field"</title>
			<link>http://www.kriesi.at/support/topic/disable-date-displayer-with-a-custom-field#post-85997</link>
			<pubDate>Fri, 30 Nov 2012 10:52:25 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">85997@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;Good thing Dude fixed it. :)&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mizzquizz on "Disable date displayer with a custom field"</title>
			<link>http://www.kriesi.at/support/topic/disable-date-displayer-with-a-custom-field#post-85995</link>
			<pubDate>Fri, 30 Nov 2012 10:50:32 +0000</pubDate>
			<dc:creator>mizzquizz</dc:creator>
			<guid isPermaLink="false">85995@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ah Dude, you're a true hero! Thanks once again for helping me out!&#60;/p&#62;
&#60;p&#62;Cheers!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Disable date displayer with a custom field"</title>
			<link>http://www.kriesi.at/support/topic/disable-date-displayer-with-a-custom-field#post-85972</link>
			<pubDate>Fri, 30 Nov 2012 08:24:10 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">85972@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Replace:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;date_container&#38;quot;&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;day&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;d&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;month&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;M&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;year&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;Y&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;?php if($k_option[&#38;#39;single&#38;#39;][&#38;#39;acc_tw&#38;#39;] != &#38;#39;&#38;#39;) { ?&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;div class=&#38;quot;tweetmeme&#38;quot;&#38;gt;&#38;lt;br /&#38;gt;
					&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;&#38;lt;br /&#38;gt;
						tweetmeme_source = &#38;#39;&#38;lt;?php echo $k_option[&#38;#39;single&#38;#39;][&#38;#39;acc_tw&#38;#39;]; ?&#38;gt;&#38;#39;;&#38;lt;br /&#38;gt;
						tweetmeme_url = &#38;#39;&#38;lt;?php echo get_permalink() ?&#38;gt;&#38;#39;;&#38;lt;br /&#38;gt;
 					&#38;lt;/script&#38;gt;&#38;lt;br /&#38;gt;
					&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://tweetmeme.com/i/scripts/button.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#38;lt;br /&#38;gt;
				&#38;lt;/div&#38;gt;&#38;lt;br /&#38;gt;
				&#38;lt;?php } ?&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;date_container_bottom&#38;#39;&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
			&#38;lt;/div&#38;gt;&#38;lt;!-- end date --&#38;gt;&#38;lt;br /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$removedate = get_post_meta(get_the_ID(), &#38;#39;removedate&#38;#39;, true);
 if( empty($removedate) ){ ?&#38;gt;
&#38;lt;div class=&#38;quot;date_container&#38;quot;&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;day&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;d&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;month&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;M&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;year&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;Y&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;?php if($k_option[&#38;#39;single&#38;#39;][&#38;#39;acc_tw&#38;#39;] != &#38;#39;&#38;#39;) { ?&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;div class=&#38;quot;tweetmeme&#38;quot;&#38;gt;&#38;lt;br /&#38;gt;
					&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;&#38;lt;br /&#38;gt;
						tweetmeme_source = &#38;#39;&#38;lt;?php echo $k_option[&#38;#39;single&#38;#39;][&#38;#39;acc_tw&#38;#39;]; ?&#38;gt;&#38;#39;;&#38;lt;br /&#38;gt;
						tweetmeme_url = &#38;#39;&#38;lt;?php echo get_permalink() ?&#38;gt;&#38;#39;;&#38;lt;br /&#38;gt;
 					&#38;lt;/script&#38;gt;&#38;lt;br /&#38;gt;
					&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://tweetmeme.com/i/scripts/button.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#38;lt;br /&#38;gt;
				&#38;lt;/div&#38;gt;&#38;lt;br /&#38;gt;
				&#38;lt;?php } ?&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;date_container_bottom&#38;#39;&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
			&#38;lt;/div&#38;gt;&#38;lt;!-- end date --&#38;gt;&#38;lt;br /&#38;gt;
&#38;lt;?php } ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then create a custom field, call it &#34;removedate&#34; and enter a value (you can eg enter 1 or yes, etc.).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mizzquizz on "Disable date displayer with a custom field"</title>
			<link>http://www.kriesi.at/support/topic/disable-date-displayer-with-a-custom-field#post-85915</link>
			<pubDate>Thu, 29 Nov 2012 18:54:38 +0000</pubDate>
			<dc:creator>mizzquizz</dc:creator>
			<guid isPermaLink="false">85915@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Devin,&#60;/p&#62;
&#60;p&#62;the problem is that I only wish to remove the date element in &#38;lt;i&#38;gt;some&#38;lt;/i&#38;gt; posts, as some parts of my site need to have a more static feel to them (my site is built up around the portfolio 4 column view). The method 2 on the page I linked to, seems a reasonably simple way to do this, using Custom FIelds to remove the date. I'm just not sure as to how I should wrap the date html code, or if there is another simpler way to do it.&#60;br /&#62;
If I remove the code in single.php I think the date element will disappear from all posts, in stead of only some of them.&#60;/p&#62;
&#60;p&#62;I hope that I convey my idea properly :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "Disable date displayer with a custom field"</title>
			<link>http://www.kriesi.at/support/topic/disable-date-displayer-with-a-custom-field#post-85907</link>
			<pubDate>Thu, 29 Nov 2012 18:14:45 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">85907@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi mizzquizz,&#60;/p&#62;
&#60;p&#62;I'm not sure if I understand what you are trying to do. If all you want to do is remove the date on a single page you could just remove the code from single.php completely.&#60;/p&#62;
&#60;p&#62;You could also do it via css a bit more easily by targetting the single-page class on the #top div. IE, something like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#top.single-post .date_container {
display: none;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Add that to your style.css at the very bottom and it will remove the date only from single post view.&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mizzquizz on "Disable date displayer with a custom field"</title>
			<link>http://www.kriesi.at/support/topic/disable-date-displayer-with-a-custom-field#post-85841</link>
			<pubDate>Thu, 29 Nov 2012 11:02:23 +0000</pubDate>
			<dc:creator>mizzquizz</dc:creator>
			<guid isPermaLink="false">85841@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi guys,&#60;/p&#62;
&#60;p&#62;I love this forum, lot of useful stuff in here. &#60;/p&#62;
&#60;p&#62;However, I hope you could help me out with a small modification: I would like to remove the element that displays the date in single.php (around line 36-50) in certain posts. Here's the code I'm talking about:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;date_container&#38;quot;&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;day&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;d&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;month&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;M&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;year&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;Y&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;?php if($k_option[&#38;#39;single&#38;#39;][&#38;#39;acc_tw&#38;#39;] != &#38;#39;&#38;#39;) { ?&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;div class=&#38;quot;tweetmeme&#38;quot;&#38;gt;&#38;lt;br /&#38;gt;
					&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;&#38;lt;br /&#38;gt;
						tweetmeme_source = &#38;#39;&#38;lt;?php echo $k_option[&#38;#39;single&#38;#39;][&#38;#39;acc_tw&#38;#39;]; ?&#38;gt;&#38;#39;;&#38;lt;br /&#38;gt;
						tweetmeme_url = &#38;#39;&#38;lt;?php echo get_permalink() ?&#38;gt;&#38;#39;;&#38;lt;br /&#38;gt;
 					&#38;lt;/script&#38;gt;&#38;lt;br /&#38;gt;
					&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://tweetmeme.com/i/scripts/button.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#38;lt;br /&#38;gt;
				&#38;lt;/div&#38;gt;&#38;lt;br /&#38;gt;
				&#38;lt;?php } ?&#38;gt;&#38;lt;br /&#38;gt;
   				&#38;lt;span class=&#38;#39;date_container_bottom&#38;#39;&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;br /&#38;gt;
			&#38;lt;/div&#38;gt;&#38;lt;!-- end date --&#38;gt;&#38;lt;br /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I suspect this could be easily done through wrapping the date element in some conditional php code and then use the custom fields to call for the function, much like method 2 does on this page: &#60;a href=&#34;http://www.nannygoatsinpanties.com/how-tos/wordpress-how-to-remove-the-sidebar-for-specific-pages&#34; rel=&#34;nofollow&#34;&#62;http://www.nannygoatsinpanties.com/how-tos/wordpress-how-to-remove-the-sidebar-for-specific-pages&#60;/a&#62; , only my skills with php are fairly limited.&#60;/p&#62;
&#60;p&#62;Do any of you guys have a suggestion as to how I could go about it? Thanks in advance!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
