• Hello all,
    i have another one problem. Now i need to display post without one category.

    Example: i have post`s in categories like home, features, games. I need to display post only in categories like home and features, but without games.

    Maybe can you help me, how i can do this? ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mariuse3

    (@mariuse3)

    Hey again. i use query_post

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. Don’t use the blockquote it messes up the formatting. ]

    <?php
    query_posts('cat=-4');
    		if (have_posts()) : 
    
    		while (have_posts()) : the_post();
    
    			get_template_part( 'loop', 'index' );
    
    		endwhile;endif; ?>
    
    			<?php if(function_exists('wp_pagenavi')) { // if PageNavi is activated ?>
    
    				<div class="more_posts">
    					<?php wp_pagenavi(); ?>
    				</div>
    			<?php } else { // Otherwise, use traditional Navigation ?>
    				<div class="more_posts">
    					<span class="next_posts_link"><?php next_posts_link(__('? Senesni', 'themezee_lang')) ?></span>
    					<span class="previous_posts_link"><?php previous_posts_link (__(' Ankstesni ?', 'themezee_lang')) ?></span>
    				</div>
    				<div class="clear"></div>
    			<?php }?>
    
    	</div>

    and i get always same post on mainpage, maybe can you tell me, where is a problem? in tool bar i got page/2, page/3 and etc. but post is same… Please help me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to dispay post in homepage with wordpress’ is closed to new replies.