最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

how to use custom page template in a page?

programmeradmin1浏览0评论

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.

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.

Share Improve this question edited Sep 22, 2019 at 18:24 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Sep 22, 2019 at 16:46 ashu322ashu322 132 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 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.

发布评论

评论列表(0)

  1. 暂无评论