How do I create different editable sections within a WordPress page?

后端 未结 7 2054
日久生厌
日久生厌 2021-01-30 00:44

I have been building my first theme on WordPress and have run into problem while adding content into different sections.

My HTML is somewhat like this,

&         


        
相关标签:
7条回答
  • 2021-01-30 01:45

    You've got three options I believe:

    1. Create a widget area where you can then display the content in a text widget: http://codex.wordpress.org/Function_Reference/register_sidebar
    2. Create a template where you then get the content of a different page: http://codex.wordpress.org/Page_Templates#File_Folders
    3. Create a new meta box for all your pages: http://codex.wordpress.org/Function_Reference/add_meta_box

    I believe that the thing you are looking for is option 2. The others are more full-site oriented, if you want the extra content to show up on every single page.

    0 讨论(0)
提交回复
热议问题