Home › Forums › General Issues › Admin errors since 5.5.13 PRO update › Reply To: Admin errors since 5.5.13 PRO update
Here is a reduced version of mine:
global $tab_prix;
$tab_prix = tab_prix(get_current_user_role());
function tab_prix($user_role) {
$args = array(
'posts_per_page' => -1,
'offset' => 0,
'post_type' => 'confiserie',
'post_status' => array('publish', 'private'),
'suppress_filters' => true
);
$confiseries = get_posts( $args );
foreach($confiseries as $confiserie) {
$reference = get_field('reference', $confiserie->ID);
$refs = get_field('reference_secondaire', $confiserie->ID);
}
}
When i comment out the lines with getfield no error at all and on 5.5.12 still no error but on 5.5.13 I get the same error as I said on my post.
I know it doesn’t make sense but well i’m stuck at 5.5.12 at the moment.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.