• Hi.
    Site owner imported description, meta title and meta keywords values with WP All Import into ACF fields that were assigned to WooCommerce categories.

    The result is that this imported values are shown in frontend with this code

    <?php 
    global $woocommerce, $woocommerce_loop, $product;
    $category = get_queried_object();
    $ct = $category->name;
    $catid = $category->term_id;
    the_field('description', $catid); ?>

    but not visible in wp-admin

    Here is Group of Fields

    For testing purposes I’ve created my new ACF field, filled it and put in frontend. It works as expected (I see value both in frontend and in backend).

    About DB:
    My New field is in wp_options table (piece of dump)
    `
    INSERT INTOwp_options VALUES(“13198”, “product_cat_15_description2”, “Описание от Devise”, “no”);
    INSERT INTO wp_options VALUES(“13199”, “_product_cat_15_description2”, “field_5b30f2f1fde5f”, “no”);
    `

    but problematic fields are in wp_postmeta
    `
    INSERT INTOwp_postmeta VALUES(“101229”, “795”, “_wp_page_template”, “default”);
    INSERT INTO wp_postmeta VALUES(“101228”, “795”, “description”, “<h2>Трубы чугунные ВЧШГ ГОСТ 9583-75: технические характеристики</h2><p>text</p>”);
    INSERT INTO wp_postmeta VALUES(“101227”, “795”, “_description”, “field_5ac67e4bbc4ff”);
    `

    The question is how can I repair problematic fields to make them show in backend too.

    • This topic was modified 7 years, 9 months ago by ADvi.

The topic ‘Empty ACF values in wp-admin’ is closed to new replies.