Support

Account

Home Forums General Issues add_row adding rows but returning false with have_rows

Unread

add_row adding rows but returning false with have_rows

  • Hi there,

    I’ve created an import script for bringing over certain content from external sources to WordPress, this involves using add_row() to create repeater rows.

    The content is importing just fine, posts are populating, the repeater fields are showing as populated in the editor, but have_rows() is returning false.

    Comparing the two post meta in the database with one that works and there’s no difference, they’re almost exactly the same (just with different values).

    The code used to add the rows is as follows:
    add_row('files', ["file" => $file], $post_id);

    One solution that resolves this is just updating the post from the editor, but that’s not really possible with 400 posts haha!

    Any help with this would be greatly appreciated.

Viewing 1 post (of 1 total)

The topic ‘add_row adding rows but returning false with have_rows’ is closed to new replies.