Support

Account

Forum Replies Created

  • How did this turn out? I wish it had been public so I could see, because I’ve experienced the same thing with wc_get_template_part()– it renders an empty block, but if you switch to Preview mode and back to Edit, the block renders fine. It works fine on the front end, of course. If I just individually call for the_title, the_content, the_post_thumbnail, for example, it works perfectly on the back end, but I obviously want all the woocommerce goodies like price etc.

    It’s been this way for quite a while but it’s not a showstopper since you can toggle preview/edit.

  • For anyone searching this years later, like me…
    I tried to replace links I created with ACF and couldn’t find the URL fragments I was searching for in wp_posts, wp_postmeta, anywhere.
    Let’s say I was searching for /contact/ and replacing with /pricing/.
    Finally looked at the post content itself and discovered that the trailing slash was escaped and that’s why my search & replace was missing it.
    Searching for /contact\/ and replacing with /pricing\/ worked.
    Minor mystery but here we are.

  • I got here after googling “acf fields won’t save to group” because I was having an issue where I could save a parent field, but couldn’t save any child fields to that parent group. I’d hit save and they’d appear as siblings of the parent group rather than children (subfields). While troubleshooting, I reinstalled ACF and this caused an additional symptom where it appeared the entire field group was empty, though it wasn’t– above the existing fields, it read “No fields. Click the + Add Field button to create your first field.”

    I ruled out plugin conflicts (deactivated all other plugins) and then used a default theme which solved the issue, so I temporarily renamed the functions.php and that did the trick. After combing through some functions– it was crammed with different customizations that probably should’ve been plugins, because younger me didn’t know what I know now– I saw there was one that removed query strings from static resources which set off my spider sense. I removed it and that solved the problem. The offending code:

    `//Remove query strings from static resources

    function _remove_script_version( $src ){
    $parts = explode( ‘?ver’, $src );
    return $parts[0];
    }

    add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
    add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );

  • Thanks! I guess that should have been my third step. Totally solved.

Viewing 6 posts - 1 through 6 (of 6 total)