Forum Replies Created

Viewing 15 replies - 136 through 150 (of 162 total)
  • Cristiano

    (@iclapton)

    How did you solv it???

    Forum: Plugins
    In reply to: Post Expirator in Template
    Thread Starter Cristiano

    (@iclapton)

    Any help????

    Forum: Plugins
    In reply to: Post Expirator in Template
    Thread Starter Cristiano

    (@iclapton)

    In 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 template

    I 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…

    I’m having the same issue… any help???

    Thread Starter Cristiano

    (@iclapton)

    Hi 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 you

    Thread Starter Cristiano

    (@iclapton)

    Still have the same problems… any help please!!!

    Thread Starter Cristiano

    (@iclapton)

    Please, any help!!! ??

    Thread Starter Cristiano

    (@iclapton)

    Thanks 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…

    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&aacute;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('','','&laquo; Previous Entries') ?></li>
          <li class="future"><?php posts_nav_link('','Next Entries &raquo;','') ?></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!!

Viewing 15 replies - 136 through 150 (of 162 total)