Advertisement
Guest User

error code

a guest
Jan 7th, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2. global $wp_query;
  3. $slug = $wp_query->query_vars['name'];
  4. $status = get_page_by_path($slug, OBJECT, 'page');
  5.  
  6. var_dump($wp_query);
  7.  
  8. if ($status->post_status != "private")
  9. { ?>
  10. <p>Page not found error</p>
  11. <?php
  12. }
  13. else
  14. { ?>
  15. <p>Log in box</p>
  16.  
  17. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement