This is the query I need:
[Code moderated as per the Forum Rules. Please use the pastebin]
As you can see I’m pretty new to WordPress. Now With this query I get a record for each tag and category of each post.
I was wondering if WordPress has some internal function to manipulate this data and get something organized like a Post object with an array of categories and tags. Then I will encode in JSON or XML.
Can you help me?