Homepage to serve content from my custom landing page


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.

site.com should read the content of my site.com/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.com/landing_page"));


John Rey Tanquinco 4 months 0 Answers 11 views 0

Leave an answer