Forum Replies Created
-
AuthorPosts
-
I was sure to have tried it before, with no luck, but clearly I was wrong because your suggestion works flawlessly!
Thanks a lot Ismael, ‘wp_loaded’ solves my problem.Regards,
ChristianHi Ismael,
thanks for spending your time to help me to solve this weird problem.
My plugin is very simple: it checks if the current url contains “wp-login.php” and in some conditions it forces a 404 page (through the code written above). The above process is included into a WordPress ‘init’ function.
That’s all.Bye,
ChristianThanks Nikko, but unfortunately the suggested procedure doesn’t solve my problem: “global $avia_config” is already declared in header.php which is correctly invoked and included.
Regards,
ChristianLet me be more specific: of course I can define a box_class index and forget about the notice, but the fact is that the style is someway not fully loaded so that the 404 page is not rendered as correctly as it should. To avoid this problem, I need to know how to deal with style when a 404 page is forced to be displayed with:
status_header(404);
global $wp_query;
$wp_query->set_404();
include(get_query_template( ‘404’ ));
exit;Thanks in advance,
ChristianSame Enfold release and same warning here, however maps are displayed correctly.
edit: Solved by creating a new API.Regards,
Christian- This reply was modified 7 years, 11 months ago by sgarlarud.
-
AuthorPosts