Reinstall WordPress while keeping attachments

I have a WordPress installation that I want to reinstall. However, I also have in it several uploaded files (.doc and PDFs) that are linked by external sites. They are not used in any of my own pages: I just uploaded them to my WordPress site instead of putting them in a Dropbox or a Google Drive, and now I can’t (or shouldn’t) delete them.

Inside Array – “unidentified index” error with “prepare was called incorrectly” despite not calling the prepared statement with wordpress

I know that there is a very old answer that details unidentified index but using the methods there I can not figure out how to make isset work with the code I have. It is below but doesnt solve the issue. Plus it my error is paired with the PREPARE error AND the fact that … Read more

Execute php after post save/update

I have created a php script (generate.php) which is querying posts on set criteria and then writing result in custom xml file. I would like to execute the generate.php everytime the post Save/Update button is pressed. Do you have any clue on how to do this? May be with cron jobs every X minutes would be better?