[ad_1]
I have a problem. I’m using ACF Pro on WordPress, and I’m somewhat new to this. It turns out that in a previous site my colleague worked on, they used some blocks. What I did was copy the code into functions.php. I can use the blocks when I’m editing the page, but when I update and view it publicly or in preview, nothing appears. What can I do?
[ad_2]
The code won’t function without the ACF fields themselves. š
Can you explain better what you’re talking about? What do you mean “they used some blocks” and that “you copied the code to your functions.php” What code did you copy? What does ACF have to do with any of this? Did he have a bunch of fields setup with ACF and you removed the plugin? None of this makes any sense given what you wrote.
If there are fields created with ACF. The only way those fields can be output on the page is by adding code to your template files to display it, or in the case of a custom ACF block, a custom php file that the block loads to display.