Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call a page from the theme directly
#3
(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.'); }
Reply


Messages In This Thread
Call a page from the theme directly - by Domi - 2020-06-14, 18:30:49
RE: Call a page from the theme directly - by Domi - 2020-06-15, 00:52:35
RE: Call a page from the theme directly - by Bigin - 2020-06-15, 23:33:21



Users browsing this thread: 1 Guest(s)