My posts where processed with the FeedWordPress plugin with the “Link” setting set to “Permalinks point to: The copy on the original website”.
So for all the posts the GUID looks something like “tag:google.com,2005:reader/item/” and in the admin area when editing a post the “Permalink” field under the post title shows an original site’s URL, which is stored in the “syndication_permalink” meta data.
I would like to make all the posts point to a “local” copy instead now. So the GUID and permalink will be something like “http://myside.com/<my permalink structure>”.
What is the best way to do it?? I would really appreciate any help!
I can get the permalink structure using
get_option('permalink_structure'), but I’m stuck with how I will then go on and generate a correct permalink for a post.