For a project we need to store posts into a folder based on the category they are in. This needs to be a tree structure, e.g. categorya/categoryb. I've seen other people working on it by searching previous issues but unfortunately nobody has shared the final solution.
I know we can get there by using the filter for wpghs_directory_published but after that I'm a little lost. Primarily because I can't seem to get any debug data displayed.
It's been a while since I have worked with PHP so me not knowing how to code it can be a huge reason here. Some help on how to debug would be much appreciated though.
For a project we need to store posts into a folder based on the category they are in. This needs to be a tree structure, e.g. categorya/categoryb. I've seen other people working on it by searching previous issues but unfortunately nobody has shared the final solution.
I know we can get there by using the filter for
wpghs_directory_published
but after that I'm a little lost. Primarily because I can't seem to get any debug data displayed.It's been a while since I have worked with PHP so me not knowing how to code it can be a huge reason here. Some help on how to debug would be much appreciated though.