tades
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Why query limit number post don’t work? (in this case)hi, thanks for your comments. I won’t use that code anymore.
Cheers
Forum: Fixing WordPress
In reply to: Why query limit number post don’t work? (in this case)yeah, you right stvwlf, but I forget put full code
I can’t use “showposts” because this parameter is set -1. With this code displays post/meetings future and I only need display 3 next…
if set showposts=3, don’t display future meetings
<?php
query_posts(‘cat=87&showposts=-1&orderby=date&order=ASC’);
while (have_posts()) : the_post();$post_date = mysql2date(“Ymd”, $post->post_date_gmt);
$currentdate = date(“Ymd”, strtotime(‘+1 day’));
$expirationdate = $post_date;
if ( $expirationdate > $currentdate ) { ?><!–loop–>
<div class=”post”>
</div>
<!–loop–><?php }
endwhile; ?>then where is my error about this code?
thanks for comments
Forum: Plugins
In reply to: Future Posts on a page?you right, I set the number posts… but don’t works, I’ll try another thread.
thanks a lot
Forum: Plugins
In reply to: Future Posts on a page?Disbas
your tips are greats. Thanks a lot. I put this (&posts_per_page=15) for display posts, but always show 7. Why?.
I changed value post_per_page=-1 for display full post, but don’t works also.
post_per_page=-1 (link)
thanks again
Forum: Plugins
In reply to: Future Posts on a page?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.
can you tell me what is my bug?
I put your code in category page
my code
<?php get_header(); if (have_posts()): ?> <ol id="posts"><?php query_posts('cat=3&posts_per_page=10&orderby=date&order=ASC'); ?> <?php while ( have_posts() ) : the_post() ?> <li class="postWrapper" id="post-<?php the_ID(); ?>"> <h2 class="postTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <small><?php the_date(); ?> by <?php the_author(); ?></small> <div class="post"><?php the_content(__('(more...)')); ?></div> <p class="postMeta">Category: <?php the_category(', ') . " " . the_tags(__('Tags: '), ', ', ' | ') . comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')) . edit_post_link(__('Edit'), ' | '); ?></p> <hr class="noCss" /> </li> <?php comments_template(); // Get wp-comments.php template ?> <?php //check the dates $post_date = mysql2date("Ymd", $post->post_date_gmt); $currentdate = date("Ymd", strtotime('-1 day')); $expirationdate = $post_date; if ( $expirationdate > $currentdate ) { ?> <?php } //end date check ?> <?php endwhile; ?> </ol> <?php else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> <?php if (will_paginate()): ?> <ul id="pagination"> <li class="previous"><?php posts_nav_link('','','« Previous Entries') ?></li> <li class="future"><?php posts_nav_link('','Next Entries »','') ?></li> </ul> <?php endif; ?> <?php get_footer(); ?>Forum: Plugins
In reply to: Future Posts on a page?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…
Thanks
Forum: Fixing WordPress
In reply to: Display future regardless of dateForum: Fixing WordPress
In reply to: Display future regardless of dateForum: Fixing WordPress
In reply to: Future posts on the single.phptheApe, solution is here: http://wordpress.org/support/topic/141099?replies=2
let me know if work for you
Forum: Fixing WordPress
In reply to: Upcoming future posts problemForum: Fixing WordPress
In reply to: Upcoming future posts problem