Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

custom 404 element not showing in 404 generated by another plugin

Home / Forums / Kadence Theme / custom 404 element not showing in 404 generated by another plugin

This topic is: Awaiting Feedback
[Awaiting Feedback]
Posted in: Kadence Theme
November 15, 2023 at 5:38 pm

I created a 404 custom page following the instructions here:
and it works well everywhere in my site, except on pages generated by another plugin (when the 404 is for a path for those other pages it shows a regular not found page without the kandence 404 custom element)
The 404 is called in that plugin template like this:
global $wp_query;
$wp_query->set_404();
status_header(404);
nocache_headers();
get_query_template(‘404’);
exit();
Any advise on how to update that code to show 404 generated by that plugin to show the Kandence 404 element as on the rest of the site?
Thanks,

  • The forum ‘Kadence Theme’ is closed to new topics and replies.