Cristiano
Forum Replies Created
-
Forum: Plugins
In reply to: wpdb query to retrieve posts messes up category pageHow did you solv it???
Forum: Plugins
In reply to: Post Expirator in TemplateAny help????
Forum: Plugins
In reply to: Post Expirator in TemplateIn fact, the plugin creates a custom field called expiration-date, but its value is something like this: “1265914800”
I cant change it directly, do I think I need to call it on the php template, transforming its format… but I don′t know how to do it.
Forum: Plugins
In reply to: Post Expirator in templateI have the same issue!
Any help??I′ve tryed that:
<?php $expiration = get_post_meta($post->ID, ‘expiration-date’, true); echo $expiration; ?>
But it returns a numeric value…
Forum: Themes and Templates
In reply to: the_category as title exclude categoryI’m having the same issue… any help???
Forum: Fixing WordPress
In reply to: Display “Future Posts” SolutionsHi Ecir,
No… in fact, one of the problems just disapeared! Now its paginating weel, the WP seems don′t consider the past events anymore…I′m still in tests, you can see it on: https://www.bcnit.es
Let me know if I can help youForum: Fixing WordPress
In reply to: Display “Future Posts” SolutionsStill have the same problems… any help please!!!
Forum: Fixing WordPress
In reply to: Display “Future Posts” SolutionsPlease, any help!!! ??
Forum: Fixing WordPress
In reply to: Display “Future Posts” SolutionsThanks for the information kwbridge, I will take a look in this plugin… but by my first look, I don′t think it will help a lot… I hope I′m wrong!!! ??
Forum: Plugins
In reply to: Future Posts on a page?Is happening the same with Tades…
Forum: Plugins
In reply to: [plugin-register-plus] Update for wp2.7?me 5…
Forum: Plugins
In reply to: Future Posts on a page?The code, a little bi modified, to get little improvement of the filter:
<?php query_posts($query_string . "&order=ASC"); ?> <?php $prev_date ='0'; ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php //check the dates $post_date = mysql2date("Ymd", $post->post_date_gmt); $currentdate = date("Ymd", strtotime('-1 day')); $limitdate = date("Ymd", strtotime("next Monday")); $expirationdate = $post_date; if ( $expirationdate > $currentdate && $expirationdate < $limitdate) { ?> <div class="Post" id="post-<?php the_ID(); ?>" style="padding-bottom: 40px;"> <div class="PostHead"> <h1><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1> <small class="PostLocal">en <?php the_category(', ') ?> <small class="PostEdit"><?php edit_post_link('Edit'); ?></small><br /> <small class="PostTags"><?php the_tags('', ', ', '<br />'); ?></small> <small class="PostTags"><?php the_time('g:i a'); ?></small> </small> <?php //posts on same date if ( $post_date != $prev_date ) { ?> <p class="PostDate"> <small class="day"><?php the_time('j') ?></small> <small class="month"><?php the_time('M') ?></small> <small class="year"><? // php the_time('Y') ?></small> </p> <?php $prev_date = $post_date; ?> <?php } //end same date check ?> </div> <div class="PostContent"> <?php the_content('Leer más...'); ?> </div> <div class="PostDet"> <li class="PostCom"><?php comments_popup_link('0 Comentarios', '1 Comentario', '% Comentarios'); ?></li> </div> </div> <!-- <?php trackback_rdf(); ?> --> <div class="clearer"></div> <?php } //end date check ?> <?php endwhile; ?> <?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 else : ?> <h2><?php _e('Vacio'); ?></h2> <p><?php _e('Perdona, no hay ninguno evento con esos criterios.'); ?></p> <?php endif; ?>
Forum: Plugins
In reply to: Future Posts on a page?Forgot to say I′m using WP 2.7!
Forum: Plugins
In reply to: Future Posts on a page?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!
( I hope I can explaint it well, my english is poor! ??The problem:
I have like 12 posts to be showed after de “future date” 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 “navigate” to the second page, where there is 10 posts…What I think is happening:
I think the problem is that the “check date” is after the “check post”, so the loop recognize the old posts, and althought they aren′t showed, the system considers it. I really have 9 old posts!I tryed to change the “check date” place, but I couln′t get it working!
Any help???
Thanks!!Forum: Plugins
In reply to: Future Posts on a page?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!
( I hope I can explaint it well, my english is poor! ??The problem:
I have like 12 posts to be showed after de “future date” 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 “navigate” to the second page, where there is 10 posts…What I think is happening:
I think the problem is that the “check date” is after the “check post”, so the loop recognize the old posts, and althought they aren′t showed, the system considers it. I really have 9 old posts!I tryed to change the “check date” place, but I couln′t get it working!
Any help???
Thanks!!