My search code works fine on the preview mode but not on the live site

When I search on the preview mode, my code runs fine but when I open the live site it doesn’t show anything

Preview Mode

sync your database from sandbox to live. Go to your database and select sync

it is synced

what else can it be?

Check your database permissions. In preview mode you are logged in as admin so you can access everything but in live site permission must be granted for members or everyone. Hope this helps!

1 Like

thanks it worked :slight_smile:

1 Like