Okay, I’m getting warm…
I installed the get-a-post plugin and I added this code just above the Loop:
<?php global $user_ID; if (!$user_ID): ?>
<p>Hello guest :-)</p>
<?php get_a_post('post#'); ?>
<h3><?php the_title(); ?></h3>
<?php the_content(); ?>
<?php endif; ?>
When I’m logged in, it does nothing… that is good.
When I log out, I see the ‘Hello Guest’ text, so I know it’s picking up that I’m not logged in, but…
instead of the post I want to see it loads my contact form!?
I tried different posts by number and by slug… with and without quotes… still nothing but the contact form.
I have no idea why it would grab the Contact Form!?
Definitely on the right track, but I must not be implementing the get-a-post properly.
Thanks,
jw