Wsparcie » Zaawansowane » Problem z datą

  • Rozwiązano Burger69

    (@burger69)


    Witam,

    Mam problem w datami na moim blogu. Problem polega na tym, że jeśli wpis został dodany tego samego dnia co poprzedni, to w tym poprzednim nie wyświetla się data dodania. Proszę o pomoc.

    http://demo.oskarstrasburger.pl/news/

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    		<div id="content">
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<div class="event">
    				<a href="<?php the_permalink(); ?>"><h2><?php the_title(); ?></h2></a>
    				<div class="entry">
    				<?php the_content(); ?>
    					<div class="clear">
    					<span class="date"><b>Dodano:</b> <?php the_date('d/m/Y'); ?></span>
    					</div>
    				</div>
    			</div>
    			<?php endwhile; endif; ?>
    				<h2>Sponsorzy WiterCamp 2011</h2>
    				<div class="entry">
    					<?php wp_list_bookmarks('title_li=&categorize=0&orderby=ID&category=19'); ?>
    				</div>
    		</div>
    	</div>
    	<div id="container_bottom"></div>
    </div>
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
  • Moderator amistad18

    (@amistad18)

    Czy na domyślnym szablonie występuje ten sam problem?
    Użycie funkcji the_time(); zamiast the_date(); coś zmienia?

Viewing 1 replies (of 1 total)
  • Temat ‘Problem z datą’ jest zamknięty na nowe odpowiedzi.