2020-06-15, 23:33:21
(2020-06-14, 18:30:49)Domi Wrote:PHP Code:<a href="<?php get_theme_url(); ?>/under-construction.php">Consulting</a>
I get "you cannot load this page directly." which is normal and what I can expect but how to load it 'normally' like if I use it thru a page ? is there any way ?
You can access the file directly, this should not be a problem, but your code will be executed outside of the GS concept and you will not be able to use the GS functions. IN_GS is a GS constant which is not set in this case. Delete all GS functions from the file and call it again. Remove this:
if(!defined('IN_GS')){ die('you cannot load this page directly.'); }