Sitedrive not showing Media, Posts or ACF properties to add

Hi @charlie

I have a single site with a local sitedrive that cannot see any files for Media, Posts, or ACF, yet Themes and Plugins show. any ideas?

Might be some plugin affecting the list. Could you send over credentials for me to check out? Which posts are enabled in the “Settings > Integrations > Post” settings?

Sure thing, this is a live site though

You know if there is some plugin preventing REST or anything like that? I couldn’t figure it out just from altering the SiteDrive plugin to test it.

Hi @charlie
Not that I am aware of but it does have a lot going on with that site. I’ll spin up a duplicate and give you details that you can play in if that would help?

Yeah that’s try that, thanks.

Thanks @charlie

Below are the staging details

In your Child Theme you have a pre_get_posts that is affecting SiteDrive. If I add that return it starts working. If you can you can probably just disable that action on REST requests. Let me know if that helps.

Thank you @charlie, that is massively helpful

I have made the changes below which seem to be working, Can you see any problem with this approach?

That looks good to me. We use the function cs_is_rest_request internally too, but it looks like your function checks for additional stuff.