D
D
Denis99992020-03-28 17:03:57
Network administration
Denis9999, 2020-03-28 17:03:57

Get_field acf stopped returning data?

$field = get_field('address','option'); 
print_r($field);


In this case, in the English and French versions of the site, the data is returned. The field for all language versions of the site is the same, it is set in the admin panel on the settings page, it is not tied to any post:
5e7f598b294fb227217933.jpeg

This problem appeared after changing the main language of the site. Maybe it has something to do with it...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
Julia Bedrosova, 2019-09-11
@Headcapitan

Open the Bitrix24 database through phpmyadmin and go through all the tables: wherever the domain name of the portal is found (and it’s dofiga where) replace it with your 80.80. .

A
Andrey Barbolin, 2019-09-11
@dronmaxman

Bitrix will transfer, you need to catch the response from Bitrix in nginx and change the port, but this is difficult to catch, there will be a lot of rakes and I do not recommend you such a scheme.
More correctly - razrulit domain names. If the user goes to b24.domain.com, he gets to Bitrix, if my.domain.com, then to your page.

O
Orkhan Hasanli, 2020-03-28
@azerphoenix

Problems can be of a different nature ...
1) what kind of multilingual plugin is used? Eliminate a bug from this plugin
2) what version of ACF is used? rule out the bug from this plugin
3) restore the site from a backup and try re-simulating the bug. If it repeats after changing the language, then you have found the problem ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question