Skip to content

ACF repeater field meta not indexed if the post doesn’t have other meta. #196

@burhandodhy

Description

@burhandodhy

Describe the bug

Currently, to index data from an ACF repeater field, the plugin relies on the ep_prepare_meta_allowed_protected_keys filter. However, this filter is not triggered if the post has no other meta fields. This occurs because in prepare_meta, the process exits early if it’s empty.

Steps to Reproduce

  1. Create the ACF repeater field and set the option to index it.
  2. Ensure the post has no other meta fields.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions