But the GUID won’t give me the correct permalink structure. It will only give me the same url as the previous suggestion “domain.com/site/?p=POSTID” and it will contain the wrong url if the post/page was created on my local dev machine (localhost) prior to the upload to the live server.
no, i’m using raw mysql queries to extract the post info I need.
Switch-to-blog doesn’t really feel like an alternative based on its performance in combination with the heavy traffic to the site.
I’ll try the direct linking, should be pretty easy to do a wrapper function to generate that.
Thanks for the help Ipstenu!
But wordpress admins, there is really no reason why this function should not exist…