admin管理员组

文章数量:1314471

So I have all the fields created for the home page and I have fields created for (icons, contact form and etc...). I am having trouble displaying the contact form on my page. Like the field is done. I have retrieved all the necessary fields however, it's not displaying. Note there is no code involved. I did not code at all. It was through a plugin called Advanced Custom Fields. All I want to do is display the contact form that was created in the fields and display it on the contact us page.

Like see I am getting the necessary fields from the contact group right, but when I go to display the same form, it doesn't do anything.

So I have all the fields created for the home page and I have fields created for (icons, contact form and etc...). I am having trouble displaying the contact form on my page. Like the field is done. I have retrieved all the necessary fields however, it's not displaying. Note there is no code involved. I did not code at all. It was through a plugin called Advanced Custom Fields. All I want to do is display the contact form that was created in the fields and display it on the contact us page.

Like see I am getting the necessary fields from the contact group right, but when I go to display the same form, it doesn't do anything.

Share Improve this question edited Nov 24, 2020 at 17:24 user372204 asked Nov 24, 2020 at 16:44 user372204user372204 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

Your theme needs to reference the custom fields from the backend, they aren't included in

<?php the_content();?>

EG: If the custom field is a text field your theme will need something like:

<?php the_field('name_of_custom_field'); ?>

I'd suggest you look at the docs located here: https://www.advancedcustomfields/resources/

本文标签: pluginscustom fields not displaying on wordpress site