This question already has an answer here: Homepage to serve content from my custom landing page [closed] (1 answer) Closed 4 years ago.admin管理员组文章数量:1323015
NOTE: This is a duplicate issue since I have posted it to a wrong channel. I just figured out this community of wordpress here in SO.
I am new to wordpress and trying to achieve something.
I have a landing page created from a plugin and I want my homepage to serve the content of that landing page without any redirection.
E.g. site
should read the content of my site/landing_page
Is there any way to do it programmatically? Or via dashboard?
The code below does not satisfy my condition since the homepage is redirected to the landing page itself.
add_action('template_redirect', 'default_page');
function default_page(){
if(is_home() or is_front_page()){
exit( wp_redirect("site/landing_page"));
}
}
I also raise this concern to the plugin page.
TIA
本文标签: Homepage to serve the content of page created from a plugin
版权声明:本文标题:Homepage to serve the content of page created from a plugin 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742113654a2421369.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论