Wsparcie » Motywy » Custom fields

  • Witam mam problem z wyświetleniem danych zawartych w custom fields kod poniżej

    function wydarzenia()
    {
    	echo '<div class="module">
    					<div class="module_title">
    						Nadchodzące Wydarzenia
    					</div>
    					<div class="module_content">';
    					$args = array( 'post_type' => 'wydarzenia', 'posts_per_page' => 5 );
    						$loop = new WP_Query( $args );
    						while ( $loop->have_posts() ) : $loop->the_post();
    								echo '<div class="event">
    							<div class="wydarzenia_date">
    								<ul>
    									<li class="day">';
    									echo  get_post_meta($post_id, 'dzien', true);
    									</li>
    									<li class="month">
    										Maj
    									</li>
    									<li class="year">
    										2013
    									</li>
    								</ul>
    							</div>
    							<div class="wydarzenia_info">
    								<ul>
    									<li class="venue">';
    									echo the_title();
    									echo '</li>
    									<li class="city">
    										Kędzierzyn-Koźle
    									</li>
    									<li class="time">
    										start: 21:00
    									</li>
    								</ul>
    							</div>
    						</div>';
    						endwhile;	
    
    					echo'</div>
    					</div>
    				</div>';	
    
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • Temat ‘Custom fields’ jest zamknięty na nowe odpowiedzi.