1

I have a custom page template, and I want to use this in my page. I have created a new page and in template choose custom page template name. It's working, but I have added 4 blocks in my page, and this not working.

I want to use the custom page template with wordpress page text.
I want to use both custom page template and text blocks as well.

1 Answer 1

1

Your template should include the_content so that content from your editor is displayed in your page.

<?php the_content(); ?>

It would be better if you posted the php code of the page template you created, to find the exact issue.

3
  • thanks , please let me know how can i include content of specific page in custom template before <?php get_footer();?>
    – ashu322
    Commented Sep 23, 2019 at 3:50
  • include the id of the page to get the specific page content <?php echo get_the_content($page_id); ?> Commented Sep 23, 2019 at 4:59
  • Thanks, working now
    – ashu322
    Commented Sep 23, 2019 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.