<?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>WordPress &#8250; Support User Favorites: jbbrwcky</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support User Favorites: jbbrwcky</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 00:45:58 +0000</pubDate>

<item>
<title>iclapton on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-981221</link>
<pubDate>Tue, 10 Feb 2009 08:19:52 +0000</pubDate>
<dc:creator>iclapton</dc:creator>
<guid isPermaLink="false">981221@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Is happening the same with Tades...
&#60;/p&#62;</description>
</item>
<item>
<title>iclapton on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-980939</link>
<pubDate>Mon, 09 Feb 2009 23:56:05 +0000</pubDate>
<dc:creator>iclapton</dc:creator>
<guid isPermaLink="false">980939@http://wordpress.org/support/</guid>
<description>&#60;p&#62;The code, a little bi modified, to get little improvement of the filter:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php query_posts($query_string . &#38;quot;&#38;#38;order=ASC&#38;quot;); ?&#38;gt;
	&#38;lt;?php $prev_date =&#38;#39;0&#38;#39;; ?&#38;gt;

	&#38;lt;?php if (have_posts()) : ?&#38;gt;
	&#38;lt;?php while (have_posts()) : the_post(); ?&#38;gt;

        &#38;lt;?php  //check the dates

		$post_date = mysql2date(&#38;quot;Ymd&#38;quot;, $post-&#38;gt;post_date_gmt);
		$currentdate = date(&#38;quot;Ymd&#38;quot;, strtotime(&#38;#39;-1 day&#38;#39;));
		$limitdate = date(&#38;quot;Ymd&#38;quot;, strtotime(&#38;quot;next Monday&#38;quot;));
		$expirationdate = $post_date;

			if ( $expirationdate &#38;gt; $currentdate &#38;#38;&#38;#38; $expirationdate &#38;lt; $limitdate) { ?&#38;gt;

		&#38;lt;div class=&#38;quot;Post&#38;quot; id=&#38;quot;post-&#38;lt;?php the_ID(); ?&#38;gt;&#38;quot; style=&#38;quot;padding-bottom: 40px;&#38;quot;&#38;gt;

			&#38;lt;div class=&#38;quot;PostHead&#38;quot;&#38;gt;
			&#38;lt;h1&#38;gt;&#38;lt;a title=&#38;quot;Permanent Link to &#38;lt;?php the_title(); ?&#38;gt;&#38;quot; href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; rel=&#38;quot;bookmark&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h1&#38;gt;
				&#38;lt;small class=&#38;quot;PostLocal&#38;quot;&#38;gt;en &#38;lt;?php the_category(&#38;#39;, &#38;#39;) ?&#38;gt;
                	&#38;lt;small class=&#38;quot;PostEdit&#38;quot;&#38;gt;&#38;lt;?php edit_post_link(&#38;#39;Edit&#38;#39;); ?&#38;gt;&#38;lt;/small&#38;gt;&#38;lt;br /&#38;gt;
                	&#38;lt;small class=&#38;quot;PostTags&#38;quot;&#38;gt;&#38;lt;?php the_tags(&#38;#39;&#38;#39;, &#38;#39;, &#38;#39;, &#38;#39;&#38;lt;br /&#38;gt;&#38;#39;); ?&#38;gt;&#38;lt;/small&#38;gt;
                    &#38;lt;small class=&#38;quot;PostTags&#38;quot;&#38;gt;&#38;lt;?php the_time(&#38;#39;g:i a&#38;#39;); ?&#38;gt;&#38;lt;/small&#38;gt;
            	&#38;lt;/small&#38;gt;

                   		&#38;lt;?php  //posts on same date
						if ( $post_date != $prev_date ) { ?&#38;gt;

						&#38;lt;p class=&#38;quot;PostDate&#38;quot;&#38;gt;
						&#38;lt;small class=&#38;quot;day&#38;quot;&#38;gt;&#38;lt;?php the_time(&#38;#39;j&#38;#39;) ?&#38;gt;&#38;lt;/small&#38;gt;
						&#38;lt;small class=&#38;quot;month&#38;quot;&#38;gt;&#38;lt;?php the_time(&#38;#39;M&#38;#39;) ?&#38;gt;&#38;lt;/small&#38;gt;
						&#38;lt;small class=&#38;quot;year&#38;quot;&#38;gt;&#38;lt;? // php the_time(&#38;#39;Y&#38;#39;) ?&#38;gt;&#38;lt;/small&#38;gt;
						&#38;lt;/p&#38;gt;

                        &#38;lt;?php $prev_date = $post_date; ?&#38;gt;
                        &#38;lt;?php } //end same date check ?&#38;gt;

			&#38;lt;/div&#38;gt;

			&#38;lt;div class=&#38;quot;PostContent&#38;quot;&#38;gt;
			&#38;lt;?php the_content(&#38;#39;Leer m&#38;amp;aacute;s...&#38;#39;); ?&#38;gt;
			&#38;lt;/div&#38;gt;

			&#38;lt;div class=&#38;quot;PostDet&#38;quot;&#38;gt;
 				&#38;lt;li class=&#38;quot;PostCom&#38;quot;&#38;gt;&#38;lt;?php comments_popup_link(&#38;#39;0 Comentarios&#38;#39;, &#38;#39;1 Comentario&#38;#39;, &#38;#39;% Comentarios&#38;#39;); ?&#38;gt;&#38;lt;/li&#38;gt;
			&#38;lt;/div&#38;gt;

		&#38;lt;/div&#38;gt;

		&#38;lt;!-- &#38;lt;?php trackback_rdf(); ?&#38;gt; --&#38;gt;
		&#38;lt;div class=&#38;quot;clearer&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;

		&#38;lt;?php } //end date check ?&#38;gt;

		&#38;lt;?php endwhile; ?&#38;gt;

	  &#38;lt;?php if (will_paginate()): ?&#38;gt;

    &#38;lt;ul id=&#38;quot;pagination&#38;quot;&#38;gt;
      &#38;lt;li class=&#38;quot;previous&#38;quot;&#38;gt;&#38;lt;?php posts_nav_link(&#38;#39;&#38;#39;,&#38;#39;&#38;#39;,&#38;#39;&#38;amp;laquo; Previous Entries&#38;#39;) ?&#38;gt;&#38;lt;/li&#38;gt;
      &#38;lt;li class=&#38;quot;future&#38;quot;&#38;gt;&#38;lt;?php posts_nav_link(&#38;#39;&#38;#39;,&#38;#39;Next Entries &#38;amp;raquo;&#38;#39;,&#38;#39;&#38;#39;) ?&#38;gt;&#38;lt;/li&#38;gt;
    &#38;lt;/ul&#38;gt;

  &#38;lt;?php endif; ?&#38;gt;

			&#38;lt;?php else : ?&#38;gt;
			&#38;lt;h2&#38;gt;&#38;lt;?php _e(&#38;#39;Vacio&#38;#39;); ?&#38;gt;&#38;lt;/h2&#38;gt;
			&#38;lt;p&#38;gt;&#38;lt;?php _e(&#38;#39;Perdona, no hay ninguno evento con esos criterios.&#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;

	&#38;lt;?php endif; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>iclapton on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-980937</link>
<pubDate>Mon, 09 Feb 2009 23:54:43 +0000</pubDate>
<dc:creator>iclapton</dc:creator>
<guid isPermaLink="false">980937@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Forgot to say I´m using WP 2.7!
&#60;/p&#62;</description>
</item>
<item>
<title>iclapton on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-980935</link>
<pubDate>Mon, 09 Feb 2009 23:51:28 +0000</pubDate>
<dc:creator>iclapton</dc:creator>
<guid isPermaLink="false">980935@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Dibas, thanks for your code, i´m using it and it´s almost perfect for me! The problem is that the post navigation got confused... i underestand what is happening, but I can´t realize how to solve it, any help would be great!&#60;br /&#62;
( I hope I can explaint it well, my english is poor! ;)&#60;/p&#62;
&#60;p&#62;The problem:&#60;br /&#62;
I have like 12 posts to be showed after de &#34;future date&#34; filter. My setup it to show 10 posts on the homepage, but it just show one on the first page, but give you the choice to &#34;navigate&#34; to the second page, where there is 10 posts...&#60;/p&#62;
&#60;p&#62;What I think is happening:&#60;br /&#62;
I think the problem is that the &#34;check date&#34; is after the &#34;check post&#34;, so the loop recognize the old posts, and althought they aren´t showed, the system considers it. I really have 9 old posts!&#60;/p&#62;
&#60;p&#62;I tryed to change the &#34;check date&#34; place, but I couln´t get it working!&#60;/p&#62;
&#60;p&#62;Any help???&#60;br /&#62;
Thanks!!
&#60;/p&#62;</description>
</item>
<item>
<title>iclapton on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-980932</link>
<pubDate>Mon, 09 Feb 2009 23:50:07 +0000</pubDate>
<dc:creator>iclapton</dc:creator>
<guid isPermaLink="false">980932@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Dibas, thanks for your code, i´m using it and it´s almost perfect for me! The problem is that the post navigation got confused... i underestand what is happening, but I can´t realize how to solve it, any help would be great!&#60;br /&#62;
( I hope I can explaint it well, my english is poor! ;)&#60;/p&#62;
&#60;p&#62;The problem:&#60;br /&#62;
I have like 12 posts to be showed after de &#34;future date&#34; filter. My setup it to show 10 posts on the homepage, but it just show one on the first page, but give you the choice to &#34;navigate&#34; to the second page, where there is 10 posts...&#60;/p&#62;
&#60;p&#62;What I think is happening:&#60;br /&#62;
I think the problem is that the &#34;check date&#34; is after the &#34;check post&#34;, so the loop recognize the old posts, and althought they aren´t showed, the system considers it. I really have 9 old posts!&#60;/p&#62;
&#60;p&#62;I tryed to change the &#34;check date&#34; place, but I couln´t get it working!&#60;/p&#62;
&#60;p&#62;Any help???&#60;br /&#62;
Thanks!!
&#60;/p&#62;</description>
</item>
<item>
<title>tades on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-923244</link>
<pubDate>Sat, 13 Dec 2008 03:53:14 +0000</pubDate>
<dc:creator>tades</dc:creator>
<guid isPermaLink="false">923244@http://wordpress.org/support/</guid>
<description>&#60;p&#62;you right, I set the number posts... but don't works, I'll try another thread.&#60;/p&#62;
&#60;p&#62;thanks a lot
&#60;/p&#62;</description>
</item>
<item>
<title>disbas on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-917905</link>
<pubDate>Mon, 08 Dec 2008 19:10:53 +0000</pubDate>
<dc:creator>disbas</dc:creator>
<guid isPermaLink="false">917905@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Slightly going off topic now: did you check the number of posts in settings &#38;gt; read? Else try 'showposts=-1' instead. If that doesn't work, best start a new thread.
&#60;/p&#62;</description>
</item>
<item>
<title>tades on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-917442</link>
<pubDate>Mon, 08 Dec 2008 04:34:16 +0000</pubDate>
<dc:creator>tades</dc:creator>
<guid isPermaLink="false">917442@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Disbas&#60;/p&#62;
&#60;p&#62;your tips are greats. Thanks a lot. I put this (&#38;#38;posts_per_page=15) for display posts, but always show 7. Why?.&#60;/p&#62;
&#60;p&#62;I changed value post_per_page=-1 for display full post, but don't works also.&#60;/p&#62;
&#60;p&#62;post_per_page=-1 (&#60;a href=&#34;http://codex.wordpress.org/Template_Tags/query_posts#Page_Parameters&#34;&#62;link&#60;/a&#62;)&#60;/p&#62;
&#60;p&#62;thanks again
&#60;/p&#62;</description>
</item>
<item>
<title>disbas on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-916309</link>
<pubDate>Sat, 06 Dec 2008 12:31:21 +0000</pubDate>
<dc:creator>disbas</dc:creator>
<guid isPermaLink="false">916309@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Well, it looks as if your checking the dates too late. First check if there is a post. If so, check the date. Then do the html. &#60;/p&#62;
&#60;p&#62;I did some reshuffling in your code. Didn't test it, though. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

  get_header();

  if (have_posts()): ?&#38;gt;

  &#38;lt;ol id=&#38;quot;posts&#38;quot;&#38;gt;&#38;lt;?php query_posts(&#38;#39;cat=3&#38;#38;posts_per_page=10&#38;#38;orderby=date&#38;#38;order=ASC&#38;#39;); ?&#38;gt;
&#38;lt;?php while ( have_posts() ) : the_post() ?&#38;gt; 

&#38;lt;?php  //check the dates
$post_date = mysql2date(&#38;quot;Ymd&#38;quot;, $post-&#38;gt;post_date_gmt);
$currentdate = date(&#38;quot;Ymd&#38;quot;, strtotime(&#38;#39;-1 day&#38;#39;));
$expirationdate = $post_date;
if ( $expirationdate &#38;gt; $currentdate ) { ?&#38;gt;

    &#38;lt;li class=&#38;quot;postWrapper&#38;quot; id=&#38;quot;post-&#38;lt;?php the_ID(); ?&#38;gt;&#38;quot;&#38;gt;

      &#38;lt;h2 class=&#38;quot;postTitle&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; rel=&#38;quot;bookmark&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h2&#38;gt;
      &#38;lt;small&#38;gt;&#38;lt;?php the_date(); ?&#38;gt; by &#38;lt;?php the_author(); ?&#38;gt;&#38;lt;/small&#38;gt;

      &#38;lt;div class=&#38;quot;post&#38;quot;&#38;gt;&#38;lt;?php the_content(__(&#38;#39;(more...)&#38;#39;)); ?&#38;gt;&#38;lt;/div&#38;gt;
      &#38;lt;p class=&#38;quot;postMeta&#38;quot;&#38;gt;Category: &#38;lt;?php the_category(&#38;#39;, &#38;#39;) . &#38;quot; &#38;quot; . the_tags(__(&#38;#39;Tags: &#38;#39;), &#38;#39;, &#38;#39;, &#38;#39; &#124; &#38;#39;) . comments_popup_link(__(&#38;#39;Comments (0)&#38;#39;), __(&#38;#39;Comments (1)&#38;#39;), __(&#38;#39;Comments (%)&#38;#39;)) . edit_post_link(__(&#38;#39;Edit&#38;#39;), &#38;#39; &#124; &#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;

      &#38;lt;hr class=&#38;quot;noCss&#38;quot; /&#38;gt;
    &#38;lt;/li&#38;gt;

    &#38;lt;?php comments_template(); // Get wp-comments.php template ?&#38;gt;

&#38;lt;?php } //end date check ?&#38;gt;
    &#38;lt;?php endwhile; ?&#38;gt;

  &#38;lt;/ol&#38;gt;

&#38;lt;?php else: ?&#38;gt;

  &#38;lt;p&#38;gt;&#38;lt;?php _e(&#38;#39;Sorry, no posts matched your criteria.&#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;

&#38;lt;?php

  endif;
  ?&#38;gt;

  &#38;lt;?php if (will_paginate()): ?&#38;gt;

    &#38;lt;ul id=&#38;quot;pagination&#38;quot;&#38;gt;
      &#38;lt;li class=&#38;quot;previous&#38;quot;&#38;gt;&#38;lt;?php posts_nav_link(&#38;#39;&#38;#39;,&#38;#39;&#38;#39;,&#38;#39;&#38;amp;laquo; Previous Entries&#38;#39;) ?&#38;gt;&#38;lt;/li&#38;gt;
      &#38;lt;li class=&#38;quot;future&#38;quot;&#38;gt;&#38;lt;?php posts_nav_link(&#38;#39;&#38;#39;,&#38;#39;Next Entries &#38;amp;raquo;&#38;#39;,&#38;#39;&#38;#39;) ?&#38;gt;&#38;lt;/li&#38;gt;
    &#38;lt;/ul&#38;gt;

  &#38;lt;?php endif; ?&#38;gt;

  &#38;lt;?php
  get_footer();
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>tades on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-915343</link>
<pubDate>Fri, 05 Dec 2008 05:30:46 +0000</pubDate>
<dc:creator>tades</dc:creator>
<guid isPermaLink="false">915343@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Disbas, I test your code in WP 2.6.3, and now future post appear, but the old posts appear also, not only future posts.&#60;/p&#62;
&#60;p&#62;can you tell me what is my bug?&#60;/p&#62;
&#60;p&#62;I put your code in category page&#60;/p&#62;
&#60;p&#62;my code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

  get_header();

  if (have_posts()): ?&#38;gt;

  &#38;lt;ol id=&#38;quot;posts&#38;quot;&#38;gt;&#38;lt;?php query_posts(&#38;#39;cat=3&#38;#38;posts_per_page=10&#38;#38;orderby=date&#38;#38;order=ASC&#38;#39;); ?&#38;gt;
&#38;lt;?php while ( have_posts() ) : the_post() ?&#38;gt; 

    &#38;lt;li class=&#38;quot;postWrapper&#38;quot; id=&#38;quot;post-&#38;lt;?php the_ID(); ?&#38;gt;&#38;quot;&#38;gt;

      &#38;lt;h2 class=&#38;quot;postTitle&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; rel=&#38;quot;bookmark&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h2&#38;gt;
      &#38;lt;small&#38;gt;&#38;lt;?php the_date(); ?&#38;gt; by &#38;lt;?php the_author(); ?&#38;gt;&#38;lt;/small&#38;gt;

      &#38;lt;div class=&#38;quot;post&#38;quot;&#38;gt;&#38;lt;?php the_content(__(&#38;#39;(more...)&#38;#39;)); ?&#38;gt;&#38;lt;/div&#38;gt;
      &#38;lt;p class=&#38;quot;postMeta&#38;quot;&#38;gt;Category: &#38;lt;?php the_category(&#38;#39;, &#38;#39;) . &#38;quot; &#38;quot; . the_tags(__(&#38;#39;Tags: &#38;#39;), &#38;#39;, &#38;#39;, &#38;#39; &#124; &#38;#39;) . comments_popup_link(__(&#38;#39;Comments (0)&#38;#39;), __(&#38;#39;Comments (1)&#38;#39;), __(&#38;#39;Comments (%)&#38;#39;)) . edit_post_link(__(&#38;#39;Edit&#38;#39;), &#38;#39; &#124; &#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;

      &#38;lt;hr class=&#38;quot;noCss&#38;quot; /&#38;gt;
    &#38;lt;/li&#38;gt;

    &#38;lt;?php comments_template(); // Get wp-comments.php template ?&#38;gt;

&#38;lt;?php  //check the dates
$post_date = mysql2date(&#38;quot;Ymd&#38;quot;, $post-&#38;gt;post_date_gmt);
$currentdate = date(&#38;quot;Ymd&#38;quot;, strtotime(&#38;#39;-1 day&#38;#39;));
$expirationdate = $post_date;
if ( $expirationdate &#38;gt; $currentdate ) { ?&#38;gt;

&#38;lt;?php } //end date check ?&#38;gt;
    &#38;lt;?php endwhile; ?&#38;gt;

  &#38;lt;/ol&#38;gt;

&#38;lt;?php else: ?&#38;gt;

  &#38;lt;p&#38;gt;&#38;lt;?php _e(&#38;#39;Sorry, no posts matched your criteria.&#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;

&#38;lt;?php

  endif;
  ?&#38;gt;

  &#38;lt;?php if (will_paginate()): ?&#38;gt;

    &#38;lt;ul id=&#38;quot;pagination&#38;quot;&#38;gt;
      &#38;lt;li class=&#38;quot;previous&#38;quot;&#38;gt;&#38;lt;?php posts_nav_link(&#38;#39;&#38;#39;,&#38;#39;&#38;#39;,&#38;#39;&#38;amp;laquo; Previous Entries&#38;#39;) ?&#38;gt;&#38;lt;/li&#38;gt;
      &#38;lt;li class=&#38;quot;future&#38;quot;&#38;gt;&#38;lt;?php posts_nav_link(&#38;#39;&#38;#39;,&#38;#39;Next Entries &#38;amp;raquo;&#38;#39;,&#38;#39;&#38;#39;) ?&#38;gt;&#38;lt;/li&#38;gt;
    &#38;lt;/ul&#38;gt;

  &#38;lt;?php endif; ?&#38;gt;

  &#38;lt;?php
  get_footer();
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>disbas on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-914866</link>
<pubDate>Thu, 04 Dec 2008 16:21:56 +0000</pubDate>
<dc:creator>disbas</dc:creator>
<guid isPermaLink="false">914866@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm using them on 2.6.5.
&#60;/p&#62;</description>
</item>
<item>
<title>tades on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-914476</link>
<pubDate>Thu, 04 Dec 2008 03:12:30 +0000</pubDate>
<dc:creator>tades</dc:creator>
<guid isPermaLink="false">914476@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Disbas and Musik, are you using wordpress 2.3, 2.5.1 or 2.6?. those hacks don't works on WP 2.6 or 2.5.1...&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>benialvarez on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-870234</link>
<pubDate>Mon, 06 Oct 2008 09:33:11 +0000</pubDate>
<dc:creator>benialvarez</dc:creator>
<guid isPermaLink="false">870234@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks musik!!&#60;/p&#62;
&#60;p&#62;That's I was looking for.
&#60;/p&#62;</description>
</item>
<item>
<title>disbas on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-855170</link>
<pubDate>Wed, 17 Sep 2008 08:08:58 +0000</pubDate>
<dc:creator>disbas</dc:creator>
<guid isPermaLink="false">855170@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I took a different approach to get a list of upcoming events (using the future is now-plugin). &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php query_posts(&#38;#39;cat=5&#38;#38;posts_per_page=5&#38;#38;orderby=date&#38;#38;order=ASC&#38;#39;); ?&#38;gt;
&#38;lt;?php while ( have_posts() ) : the_post() ?&#38;gt; &#38;lt;!--loop--&#38;gt;

&#38;lt;?php  //check the dates
$post_date = mysql2date(&#38;quot;Ymd&#38;quot;, $post-&#38;gt;post_date_gmt);
$currentdate = date(&#38;quot;Ymd&#38;quot;, strtotime(&#38;#39;-1 day&#38;#39;));
$expirationdate = $post_date;
if ( $expirationdate &#38;gt; $currentdate ) { ?&#38;gt;

&#38;lt;!-- add your html here --&#38;gt;

&#38;lt;?php } //end date check ?&#38;gt;
&#38;lt;?php endwhile ?&#38;gt;&#38;lt;!-- end loop --&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The code returns a list of the next 5 events in category 5 (i.e. events). Todays events are listed as well because of the strtotime.&#60;/p&#62;
&#60;p&#62;No need to change any of the core files. Just put this code in your sidebar to get upcoming events.
&#60;/p&#62;</description>
</item>
<item>
<title>sk8n4s8n on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-848131</link>
<pubDate>Mon, 08 Sep 2008 15:25:50 +0000</pubDate>
<dc:creator>sk8n4s8n</dc:creator>
<guid isPermaLink="false">848131@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Looks like musik's solution is what I'm in need of, but I cannot overwrite general-template.php on my server, I've changed the files permissions too.. any suggestions?
&#60;/p&#62;</description>
</item>
<item>
<title>jzo on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-828357</link>
<pubDate>Wed, 13 Aug 2008 18:01:30 +0000</pubDate>
<dc:creator>jzo</dc:creator>
<guid isPermaLink="false">828357@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Many thanks
&#60;/p&#62;</description>
</item>
<item>
<title>mosey on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-789426</link>
<pubDate>Tue, 24 Jun 2008 13:49:13 +0000</pubDate>
<dc:creator>mosey</dc:creator>
<guid isPermaLink="false">789426@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I was actually wondering what the change was, but they I realised it's commenting out the line: &#60;/p&#62;
&#60;p&#62;&#60;code&#62;AND post_date &#38;lt; &#38;#39;&#38;quot; . current_time(&#38;#39;mysql&#38;#39;) . &#38;#39;\&#38;#39;&#38;#39;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Nice solution :)
&#60;/p&#62;</description>
</item>
<item>
<title>musik on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-789247</link>
<pubDate>Tue, 24 Jun 2008 06:05:09 +0000</pubDate>
<dc:creator>musik</dc:creator>
<guid isPermaLink="false">789247@http://wordpress.org/support/</guid>
<description>&#60;p&#62;OK! I've solved my problem of future posts not showing up on the sidebar calendar and here is how. You will still need to install 'The Future Is Now' plugin. &#60;a href=&#34;http://wordpress.org/extend/plugins/the-future-is-now/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/the-future-is-now/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Activate it in your Plugin settings on your dashboard.&#60;/p&#62;
&#60;p&#62;Now open &#60;strong&#62;general-template.php&#60;/strong&#62; which is found in the folder &#60;strong&#62;wp-includes&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Go to Line 639 or thereabouts... Or look for the following code;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Get days with posts

                $dayswithposts = $wpdb-&#38;gt;get_results(&#38;quot;SELECT DISTINCT DAYOFMONTH(post_date)

                                FROM $wpdb-&#38;gt;posts WHERE MONTH(post_date) = &#38;#39;$thismonth&#38;#39;

                                AND YEAR(post_date) = &#38;#39;$thisyear&#38;#39;

                                AND post_type = &#38;#39;post&#38;#39; AND post_status = &#38;#39;publish&#38;#39;

                                AND post_date &#38;lt; &#38;#39;&#38;quot; . current_time(&#38;#39;mysql&#38;#39;) . &#38;#39;\&#38;#39;&#38;#39;, ARRAY_N);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Change it to;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Get days with posts

                $dayswithposts = $wpdb-&#38;gt;get_results(&#38;quot;SELECT DISTINCT DAYOFMONTH(post_date)

                                FROM $wpdb-&#38;gt;posts WHERE MONTH(post_date) = &#38;#39;$thismonth&#38;#39;

                                AND YEAR(post_date) = &#38;#39;$thisyear&#38;#39;

                                AND post_type = &#38;#39;post&#38;#39; AND post_status = &#38;#39;publish&#38;#39; &#38;quot;

                                /*AND post_date &#38;lt; &#38;#39;&#38;quot; . current_time(&#38;#39;mysql&#38;#39;) . &#38;#39;\&#38;#39;&#38;#39;*/, ARRAY_N);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;When you create your new future posts change the Publish Status to 'Published' and select the date your event/gig etc is on. Now your calendar will show future date posts. :)
&#60;/p&#62;</description>
</item>
<item>
<title>rforster on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-780078</link>
<pubDate>Thu, 12 Jun 2008 06:35:57 +0000</pubDate>
<dc:creator>rforster</dc:creator>
<guid isPermaLink="false">780078@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Here's the part to get a date one less than today:&#60;br /&#62;
where post_date &#38;gt; NOW()+0 -1000000&#60;br /&#62;
or where post_date &#38;gt; NOW()&#60;/p&#62;
&#60;p&#62;The first gets the current date and time, converts it to a number and subracts and amount so the day is one less than today. This really gets you any event (Post) that was done yesterday at the current time. Example:&#60;br /&#62;
Create a post for a car show in the events category with a start time of 8:00. Doesn't really matter what the end time is but in the content portion you could make note.&#60;/p&#62;
&#60;p&#62;The &#34;where post_date &#38;gt; NOW()&#34; will give you everything that hasn't happened yet. Example: The car show example above this would be a bad way to write this line as  when someone visits the page at 8:30 the NOW() will be greater than post_date so it wouldn't show on you page.&#60;/p&#62;
&#60;p&#62;I'll figure out how to subtract everything from the current time back to midnight. Really just preference for the types of events you might have.&#60;/p&#62;
&#60;p&#62;Now how do we pull the &#34;events&#34; category.....
&#60;/p&#62;</description>
</item>
<item>
<title>rforster on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-780053</link>
<pubDate>Thu, 12 Jun 2008 06:01:39 +0000</pubDate>
<dc:creator>rforster</dc:creator>
<guid isPermaLink="false">780053@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm writing a piece of code that will display a list of future events. Here's what I have done and want to do:&#60;br /&#62;
I made a category called Events.&#60;br /&#62;
I made a page called Events.&#60;br /&#62;
Have php-exec plugin installed.&#60;br /&#62;
Have cludged together the folowing: &#60;/p&#62;
&#60;p&#62;$query = &#34;select * from wp_posts&#60;br /&#62;
order by post_date desc limit 20&#34;;&#60;/p&#62;
&#60;p&#62;This works with some other statements. So it is selecting all of the fields in records from the posts table. Nice. I need the &#34;where&#34; statement worked out:&#60;/p&#62;
&#60;p&#62;$query = select * from wp_posts&#60;br /&#62;
Where post_date is greater than yesterday&#60;br /&#62;
and category is equal to &#34;Events&#34;&#60;br /&#62;
order by post_date asc limit 20&#34;;&#60;/p&#62;
&#60;p&#62;I've tried a few where statements involving dates but they either fail or get 0 events.&#60;br /&#62;
Also, I don't see where the &#34;post_category&#34; field does anything. I went into phpMyAdmin and this field has all zeros. Just dont know how this works.&#60;/p&#62;
&#60;p&#62;I'll post the code commented nicely when I get these statements worked out.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>musik on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-780039</link>
<pubDate>Thu, 12 Jun 2008 05:33:17 +0000</pubDate>
<dc:creator>musik</dc:creator>
<guid isPermaLink="false">780039@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks Michael, I've tried that plugin and it doesn't work very well for what I want.  &#60;/p&#62;
&#60;p&#62;With the 'Future is Now' installed I can get the future posts to show in the sidebar under 'Archives' as a link under the month it falls into, but it refuses to show up in the calendar in the sidebar.
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-779343</link>
<pubDate>Wed, 11 Jun 2008 11:51:03 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">779343@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Maybe this plugin will help:&#60;br /&#62;
&#60;a href=&#34;http://wordpress.org/extend/plugins/events-calendar/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/events-calendar/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>musik on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-778322</link>
<pubDate>Tue, 10 Jun 2008 01:47:32 +0000</pubDate>
<dc:creator>musik</dc:creator>
<guid isPermaLink="false">778322@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I've installed that plugin, and the future dated posts do appear under the Archives menu but do not appear on the calendar.. any ideas on what to change to allow the posts dated for future times to appear in the calendar?&#60;/p&#62;
&#60;p&#62;Am using it as an events calendar also. &#60;/p&#62;
&#60;p&#62;Cheers :)
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-777369</link>
<pubDate>Sun, 08 Jun 2008 14:50:33 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">777369@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I believe that was a 'precursor' to the final code that ended up in that plugin.
&#60;/p&#62;</description>
</item>
<item>
<title>rforster on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-777325</link>
<pubDate>Sun, 08 Jun 2008 13:26:44 +0000</pubDate>
<dc:creator>rforster</dc:creator>
<guid isPermaLink="false">777325@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks Michael. I grabbed that snippet of code from:&#60;br /&#62;
&#60;a href=&#34;http://comox.textdrive.com/pipermail/wp-hackers/2007-November/016104.html&#34; rel=&#34;nofollow&#34;&#62;http://comox.textdrive.com/pipermail/wp-hackers/2007-November/016104.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Not sure why it didn't click that it would be part of a plugin. At least I tried to make it work. :)
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-777251</link>
<pubDate>Sun, 08 Jun 2008 10:03:08 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">777251@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Could use this plugin &#60;a href=&#34;http://wordpress.org/extend/plugins/the-future-is-now/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/the-future-is-now/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;PHP-exec is a plugin that allows you to put PHP code in a post (or page) and then that code is executed like any ohter PHP code.  Otto also has a plugin that allows you to put PHP code in a Widget.&#60;/p&#62;
&#60;p&#62;You can also put code in a template.  &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Stepping_Into_Templates&#34;&#62;Stepping Into Templates&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Template_Hierarchy&#34;&#62;Template Hierarchy&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>rforster on "Future Posts on a page?"</title>
<link>http://wordpress.org/support/topic/181245#post-777029</link>
<pubDate>Sat, 07 Jun 2008 22:42:17 +0000</pubDate>
<dc:creator>rforster</dc:creator>
<guid isPermaLink="false">777029@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi everyone,&#60;/p&#62;
&#60;p&#62;Have been doing some searching in regards to making a list of upcoming events. Been looking at full calendar solutions but for now just making a post and editing the date and time is fine. I found a snippet of code:&#60;br /&#62;
*************&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
/*&#60;br /&#62;
Plugin Name: The Future is Now!&#60;br /&#62;
Description: Display posts with a timestamp in the future.&#60;br /&#62;
Version: R1.0.1&#60;br /&#62;
*/&#60;br /&#62;
function show_future_where($where) {&#60;br /&#62;
	global $wpdb;&#60;br /&#62;
	if( !is_single() &#38;#38;&#38;#38; !is_page() )&#60;br /&#62;
		$where .= &#34; OR $wpdb-&#38;gt;posts.post_status = 'future' &#34;;&#60;br /&#62;
	return $where;&#60;br /&#62;
}&#60;br /&#62;
add_filter('posts_where', 'show_future_where');&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
**********&#60;br /&#62;
I'm running php-exec and put this on a page called events(imagine that). Should I be putting this on a template instead? Haven't tried making a template yet on my own.&#60;/p&#62;
&#60;p&#62;Any help would be great!
&#60;/p&#62;</description>
</item>
<item>
<title>skippy on "Separate comments from trackbacks/pingbacks?"</title>
<link>http://wordpress.org/support/topic/34491#post-251985</link>
<pubDate>Sat, 24 Sep 2005 14:03:20 +0000</pubDate>
<dc:creator>skippy</dc:creator>
<guid isPermaLink="false">251985@http://wordpress.org/support/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://dev.wp-plugins.org/browser/anxiety/trunk/&#34;&#62;cjd-anxiety&#60;/a&#62; works well, too.
&#60;/p&#62;</description>
</item>
<item>
<title>Joen on "Separate comments from trackbacks/pingbacks?"</title>
<link>http://wordpress.org/support/topic/34491#post-251959</link>
<pubDate>Sat, 24 Sep 2005 09:38:04 +0000</pubDate>
<dc:creator>Joen</dc:creator>
<guid isPermaLink="false">251959@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Yes, asantos, it works for wp 1.5
&#60;/p&#62;</description>
</item>
<item>
<title>asantos on "Separate comments from trackbacks/pingbacks?"</title>
<link>http://wordpress.org/support/topic/34491#post-238347</link>
<pubDate>Sun, 21 Aug 2005 05:10:26 +0000</pubDate>
<dc:creator>asantos</dc:creator>
<guid isPermaLink="false">238347@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Kafkaesqui, does the hack work for wp1.5?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
