Sorry to insist. As I said in my first message, the acf fields have been always displayed in the custom post page editor (publicacoes). That wasn't never the problem. It seems that my first message was lost.
The problem is with the wpbakery that when using the acf element it isn't able to retrieve the value inserted in the acf box bellow.
Please see the attached image.from my other website without adding any code
and now the attached image from this website
. You may see the difference on the acf logo.
Further, the output doesn't show any wpbakery elements such as a text block when the acf element is inserted in the layout. See both images
and as you can see
Without using the acf element, all the other wpbakery elements appears in the page output.
Definitely there must be an error occurring.
My goal is to create a library and use wpbakery to create several templates to set the contents layout according to the type of publication.
I'm not using the pro editor for layout templates because I'm used to wpbakery for a long time.
Nevertheless, I added the suggested code to wp-publicacoes.php and the issue still persists.
Please, check the problem again and be more concrete before asking to test any solution that might not solve the issue.