Not hiding post
-
I have all the checkboxes checked for post visibility on a post to hide it from everything, and I did so when I first created the post. But that isn’t totally working. It is indexed in Google search results (and there’s not a nofollow tag on the page), it’s showing up in my sitemap, and it’s in some of the post lists.
I say some of the post lists, because for example it does not show up in the category archive and author archive, but it does show up when I use a custom function containing the below.
What should I do?
$wp_args = array ( 'post_type' => 'post', 'order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => -1, 'ignore_sticky_posts' => 1 ); $my_query = new WP_Query( $wp_args ); // loop through posts while($my_query->have_posts() && $count < $numposts) { $my_query->the_post(); // post output here }
- The topic ‘Not hiding post’ is closed to new replies.