Odpowiedź forum utworzona

Zobacz 3 odpowiedzi - od 1 do 3 (z 3 łącznie)
  • Twórca wątku taniak

    (@taniak)

    Wielkie dzięki 🙂 o to chodziło 🙂 jednak nie działa mi jedna rzecz mianowicie przycisk starsze(nowsze posty). Mam ustawione ze ma być max 5 wpisów. Potem jest przycisk starsze posty ale po kliknięciu wyrzuca znów te same 5 postów. Może wkleje kod i coś zauważysz

    <?php get_header(); ?>
    
    	<div id="content">
    
    	<?query_posts( 'cat=1' );
    
    if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<p class="meta"><span class="date"><?php the_time('F jS, Y') ?></span><span class="posted">Wpisał <?php the_author() ?></span></p>
    				<div class="entry">
    				<?php the_excerpt(); ?>
    				<p class="links">
    					<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="more">Czytaj więcej...</a>
    					<b>    |    </b>
    					<?php comments_popup_link('Skomentuj', '1 Komentarz', '% Comments', 'comments'); ?>
    <div><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftadeusztemich.pl%2F&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:30px;" allowTransparency="true"></iframe></div>
    				</p>
    				</div>
    
    			</div>
    
    		<?php endwhile;?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('« Starsze wpisy') ?></div>
    			<div class="alignright"><?php previous_posts_link('Nowsze wpisy »') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    
    	<?php endif; 
    
    	wp_reset_query();?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Jeszcze raz wielkie dzięki za pomoc

    Pzdr

    Twórca wątku taniak

    (@taniak)

    W pliku index.php mam pętle while. Poniżej kawałek kodu

    <?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    jak zmodyfikować ten kod aby wpis o id 126 nie był wyświetlany?

    Twórca wątku taniak

    (@taniak)

    Dzięki bardzo za odpowiedź. Stworzyłem taką kategorię Ukryte. Strony nie moge zrobić bo mi wskoczy kolejna pozycja w menu. W którym pliku znajdę tą pętle wyświetlania wpisów?

    Pozdrawiam

Zobacz 3 odpowiedzi - od 1 do 3 (z 3 łącznie)