Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Post created by Ninja Forms not being seen by Date Range filter

Viewing 2 posts - 1 through 2 (of 2 total)
  • James Alborough
    #211491

    I have a post type with ACF fields, one of which is a date field.

    S&F Pro does a fine job finding the relevant posts by date range.

    However, my customer wanted to create posts via simple Ninja Forms interface. The post is created and the ACF date value seems fine. It displays perfectly in the results table on load. But, when you apply the date range filter, it only finds posts that were created natively and not the posts that were created with the Ninja forms interface.

    Trevor Moderator
    #211524

    As a test, can you edit one of these posts in the WP post editor and simply save it without changing anything. Does it now appear?

    If it does, then you somehow need to hook in to the Ninja Forms save function (they may have a developer API that allows this), to make use of this action:

    https://searchandfilter.com/documentation/action-filter-reference/#update-cache-for-a-particular-post

    I think this may be of interest:

    https://developer.ninjaforms.com/codex/submission-processing-hooks/

    What is happening is that the Ninja Forms save process is not triggering actions hooked to the WordPress save_post() function, and our plugin looks for this to happen. The action I linked to above manually does this instead.

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

You must be logged in to reply to this topic.