Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • mingookoh

    (@mingookoh)

    Works! Thanks Wimberley, 🙂

    mingookoh

    (@mingookoh)

    Wimberley,
    Now, I also use unspoken theme and I’m in same situation.
    I don’t know how to edit this source.

    <?php
    		$paged = ( !empty($paged) ) ? $paged : $page;
    		query_posts(array(
                    'posts_per_page' => get_option('posts_per_page'),
                    'paged' => $paged
    				'cat' => '-5'
                ));
            ?>

    This part I understood. but “You need to modify the query_posts() argument string, using the appropriate category query arguments.” It’s difficult.

    <?php
    
    	// The Query
    	$the_query = new WP_Query( $args );
    	$query = new WP_Query( 'cat=-5' );
    
    	// The Loop
    	while ( $the_query->have_posts() ) : $the_query->the_post();
    		echo '<li>';
    		the_title();
    		echo '</li>';
    	endwhile;
    
    	// Reset Post Data
    	wp_reset_postdata();
    
    	?>
    
            <?php
    		$paged = ( !empty($paged) ) ? $paged : $page;
    		query_posts(array(
                    'posts_per_page' => get_option('posts_per_page'),
                    'paged' => $paged
    				'cat' => '-5'
                ));
            ?>

    This is right? Please, tell me how to use! T_T
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)