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 badges1 Answer
Reset to default 2That 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
评论列表(0条)