Hi all,
With all the PHP and other vulnerabilities, I’m finding a bunch of old stuff around that needs upgrading, and in most cases, sites that fully just die after jumping from PHP 7.x (or even… 5.3!!) to PHP 8.x and similar jumps in WP versions. ALL are pre-WP “blocks” sites… The last time I was working in WP with any regularity was around 5-6 years ago, or whenever “Blocks” were first starting to come into play. It is taking me some time to get back in the flow – lots of referring to docs.
Most have been simple – add a plugin for old widget compat, find “create_function()” calls and rework those. Now I’m on my first ACF site. Previously was on WP 5.9.21 and ACF Pro 5.12. Trying to upgrade to WP 6.9.12 (and then 7.x) and ACF Pro 6.8.12. None of this is going well..
On just upgrading to WP 6.9.12, my main issue is that none of the custom fields display. I confirmed the right page template is loading, and the style of ACF field display looks correct at first glance, eg: we look for a field, look for entries and loop on it:
if( have_rows(‘home_page_content’) ):
while ( have_rows(‘home_page_content’) ) : the_row();
if( get_row_layout() == ‘home_start_section’ ):
[… html stripped …]
the_sub_field(‘home_start_section_title’);
the_sub_field(‘home_start_section_text’);
the_sub_field(‘home_start_section_link’);
}
}
}
Nothing too crazy…
Before I go ham on this thing, are there any big changes in how all this is done since the “old days”?
This one is also not a theme I made, so I’m also digging through the functions.php for any oddities that may be throwing this all off.