Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter namliw

    (@namliw)

    global $wpdb;
    	//echo "<ul>";
    
     	echo "working?";
       $args = array( 'suppress_filters' => false,'author' => -1);
       $myposts = get_posts( $args );
    foreach ( $myposts as $post ) : echo (current_user_can('read',$post->ID))?1:2; ?>
    	<li>
    		<a href="<?php echo $post->post_name ?>"><?php echo $post->post_title ?></a>
    	</li>
    <?php endforeach;
    wp_reset_postdata();

    reposted code

Viewing 1 replies (of 1 total)