• How can we add an exclusion list for certain page IDs? Ideally, I would like to add an ACF checkbox ‘Do not index to Typesense’, that would prevent the page from being added to the index.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor digamberpradhan

    (@digamberpradhan)

    Hi @studiobovenkamer ,

    There isn’t an option, to do it right now.
    It’s a great idea though.
    I have added it to the idea board – and it will be added in a future version.

    The only way to do it right now would be to unhook the eventlistener action on post update.

    add_action( 'wp_after_insert_post', [ $this, 'postCreatedUpdatedHandler' ], 10, 3 );
    Thread Starter Studiobovenkamer

    (@studiobovenkamer)

    Thank you for your quick reply. Unfortunately, I wouldn’t know how to do this. For now, my workaround is setting all posts that need to be excluded to draft status (for now these draft posts don’t need to be accessed by the user, so it works but it’s not ideal).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude specific posts (custom post type) from being added to the index’ is closed to new replies.