I have edited my current them for my personal site to allow me to have a professional site along with a personal family site by hiding posted depending on certain criteria I have set with a Custom Field.
Works great. I just add
include "filename.php"
as the first line after the standard
if (have_posts()) : while (have_posts()) : the_post();
which checks my Custom Field and sends back true or false whether it should be seen or not. If false I send a 'continue' to the while loop if it shouldn't be seen.
I have 2 questions.
1. Since I am new to Wordpress, I play around and change themes all the time. I really don't like to edit themes whenever possible. Is it possible to do the above as a plugin? I am not sure how to hook in the the loop. Any examples would be great.
2. When I hide the post from being shown, the theme I am working on sometimes with display a blank 1st page, and I have to click on Page 2 to see the inlcuded posts. Is there a way when I am going to hide to post to un-increment the counter in the loop so it doesn't give me a blank page? Again, from a plugin if possible.
Thanks.