options - Where does this field get its value?

I've inherited maintenance of a wordpress site with a custom template. I'm trying to change the value of a pho

I've inherited maintenance of a wordpress site with a custom template. I'm trying to change the value of a phone number that is displayed throughout the site. I've found the field by looking in the template php files here:

<a href="tel:<?php the_field('phone_number', 'option'); ?>"><strong>Phone:</strong>  <?php the_field('phone_number', 'option'); ?></a>

I tried editing the page to see if there's a box where I can fill this in, but I can't find it anywhere.

Is there some sort of global menu for these types of fields?

I've inherited maintenance of a wordpress site with a custom template. I'm trying to change the value of a phone number that is displayed throughout the site. I've found the field by looking in the template php files here:

<a href="tel:<?php the_field('phone_number', 'option'); ?>"><strong>Phone:</strong>  <?php the_field('phone_number', 'option'); ?></a>

I tried editing the page to see if there's a box where I can fill this in, but I can't find it anywhere.

Is there some sort of global menu for these types of fields?

Share Improve this question asked Feb 4, 2020 at 16:31 fudgefudge 1173 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

That clearly is a plugin field of "Advanced Custom Fields".

The function:

the_field();

is one of the utility functions of the plugin. The purpose of "Advanced Custom Fields" is to enable users with less coding-knowledge to add custom fields to a theme/template.

So, in order to reverse engineer the whole thing, you propably need to install and activate "ACF" (very often used as an abbreviation for Advanced Custom Fields).

Activate it, and see what happens. In case your installation is missing the necessary data for the plugin, you might have to add them via ACF in the backend.

Try to find the field in the backend, which says "phone_number" it should be there, if it is not existent - create it.

Here is the plugin's website and here the documentation of the field.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744779017a4593218.html

相关推荐

  • options - Where does this field get its value?

    I've inherited maintenance of a wordpress site with a custom template. I'm trying to change the value of a pho

    8天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信