Hi, I just got a site from a client and the site is running wordpress 3.4.2. and ACF Version 3.4.2
Firs, I apologize for my english and lack of knowledge of ACF in general. I have a problem with athe website. It uses ACF, which I have never used before.
I downloaded a full copy of the site to test the update and all worked perfectly except for one page where the following code is.
I did a var_dump before upgrading wordpress and ACF and I get an array with all the data. then I upgraded wordpress and ALL plugins except ACF, and it is still working perfectly. But after upgrading ACF to latest version the var_dump displays only ‘4’.
Any ideas why ?
$class = array(‘first’, ‘second’, ‘third’, ‘four’);
$i = 0;
$menus = get_field(‘menus’);
var_dump($menus);
foreach ($menus as $menu) {
$k = $i%4;
?>
<li class=”<?php echo $class[$k]; ?>” >
“>
<span><?php echo $menu[‘name’]; ?></span>
” />
<?php $i++; } ?>
Could it be that when I upgrade the license key is lost ?
Anybody had this problem upgrading from an old version ?
And how do I keep the license, if im not the original developer that created the website ?
Hi @cubiix
Version 3 field types are different from the ones in the Pro version but ACF Pro contains a database upgrade tool to cater for this.
I would recommend you use the following workflow to upgrade the plugin:
1). Download a copy of ACF v4 from this link and upgrade to this copy https://wordpress.org/plugins/advanced-custom-fields/
2). After this is done you can then upgrade to Pro to ensure that your field types are compatible.
You can also read up on how to upgrade from this resource page: http://www.advancedcustomfields.com/resources/upgrading-v4-v5/ and http://www.advancedcustomfields.com/resources/migrating-from-v3-to-v4/