I need to find out the post ID for a page *which isn’t the current page* and in such a way that I can then find the page’s post_status (eg ‘publish’, ‘draft’).
This is so that I can output a notification on the home page depending on whether e.g. the contact page is live or not.
IF contact_page_form == ‘publish’ THEN
- The topic ‘Finding out post ID of NOT current page’ is closed to new replies.