doudou1309 2016-01-15 13:54
浏览 13
已采纳

如何在Wordpress上创建可编辑的部分?

I am building my first wordpress theme and I can't seem to figure out how to make another editable section. For instance, I have a hero with the h1 of "Lorem Ipsum, Foo Bar." But would like to be able to edit this later on down the line from the admin panel.

Is this possible? I have the ACF(Advanced Custom Fields) plug in, but it doesn't seem to be the solution I'm looking for. I don't want a field as in a form on my "site preview page".

Does this make sense?

Here is how I wrote my <h1>

<h1><?php the_field('homepage_hero_text'); ?></h1>

Here is the field I made in ACF: ACF Custom Field

But the field does not appear in my homepage admin panel: Field doesn't show up in admin panel

  • 写回答

1条回答 默认 最新

  • du7535 2016-01-15 14:01
    关注

    Scroll to the bottom and u will be able to see "Assign this field group"

    Then u can choose on which page, post, ... this field will be display.

    ACF is a great solution for ur problem.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏