btw… THANK YOU to esmi. That tip got me going in the right direction. I appreciate the support.
Hey I figured it out!
For anyone else wanting to the same things… here’s what I got:
$page_id = 284; //the id of the page you're checking to see if it's published
$page_data = get_page($page_id);
if($page_data->post_status == 'publish'){ ?>
<!-- Put the HTML here that you want to display if the page is published -->
<?php }else{} ?>
Seemed like it would… but wordpress still finds the page even if it’s a draft.
I don’t know. Basically I want to hide the link if the page is a draft. There’s gotta be a way.
Anyone?