Contributor role review posts appearing in list of posts live on website
-
I am testing out contributor roles for my website but when I set a post for review it is listed in my recent posts list live on the website. It does not however show on the body of the page where excerpts of the posts are shown.
Here is the code I am using to list my posts:
<?php $recent_posts = wp_get_recent_posts(array('numberposts' => 5)); foreach( $recent_posts as $recent ){ echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"].'</a> </li> '; } ?>
Anyone know how I can get them to be hidden until they are approved? Is there a problem with the code I am currently using? Thanks
- The topic ‘Contributor role review posts appearing in list of posts live on website’ is closed to new replies.