return FALSE; $r = well_tag_thread__update(array('id' => $id), $update); return $r; } function well_tag_thread_find($tagid, $page, $pagesize) { $arr = well_tag_thread__find(array('tagid' => $tagid), array('id' => -1), $page, $pagesize); return $arr; } function well_tag_thread_find_by_tid($tid, $page, $pagesize) { $arr = well_tag_thread__find(array('tid' => $tid), array(), $page, $pagesize); return $arr; } ?>plugins - Is it possible not to load theme on a specific page in wordpress?
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Is it possible not to load theme on a specific page in wordpress?

programmeradmin2浏览0评论

I have a question about wordpress, I need the current theme installed on my wordpress not to be loaded on a certain page, is it possible?

What I want to do is create a bootstrap dashboard, and I don't want to load the default theme. The idea is to develop a dashboard via plugin and generate all the html, header, content, footer.

I thought about using "WP_USE_THEME" and using external files, but I need to use wordpress functions like: add_action, add_shortcode and etc.

I accept suggestions too !!! Thank you.

I have a question about wordpress, I need the current theme installed on my wordpress not to be loaded on a certain page, is it possible?

What I want to do is create a bootstrap dashboard, and I don't want to load the default theme. The idea is to develop a dashboard via plugin and generate all the html, header, content, footer.

I thought about using "WP_USE_THEME" and using external files, but I need to use wordpress functions like: add_action, add_shortcode and etc.

I accept suggestions too !!! Thank you.

Share Improve this question asked May 7, 2020 at 17:51 AdrianoLeiteAdrianoLeite 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

Why not create a template file that gets loaded by the dashboard page? It is possible to create a template just like a theme template that actually lives in the plugin itself. That way, you can still call wp_head() and wp_footer() and have full access to WP functionality, but not actually pull in whatever theme the site is using.

Here's an answer that shows how to do it: How to add custom template in plugin?

发布评论

评论列表(0)

  1. 暂无评论