[wp-hackers] Retain Meta Data on Status Change
Aaron Axelsen
lists at frozenpc.net
Sun Jan 4 19:22:21 GMT 2009
After further investigation, the post meta is set on the main post - not
the revision entry. When wordpress changes the status of a post -
whether it be future to published or published to draft the meta
information is not retained. I have not been able to figure out where
the meta data is getting whipped out during the process yet.
Any thoughts or ideas are welcome!
-- Aaron
Aaron Axelsen wrote:
> I'm pretty sure that is whats going on - I have not confirmed it yet
> though. Any thoughts?
>
> Peter Westwood wrote:
>
>> On 1 Jan 2009, at 05:41, Aaron Axelsen wrote:
>>
>>
>>> Is there an easy way for a post to retain the meta data on status
>>> change? I'm trying to have my plugin retain a meta tag when it is being
>>> changed from future to published - or published to draft. The meta data
>>> seems to get removed on status change.
>>>
>>>
>> Are you ending up with the meta data associated with the revision
>> rather than the main post?
>>
>> westi
>>
>
>
--
Aaron Axelsen
lists at frozenpc.net
Great hosting, low prices. Modevia Web Services LLC -- http://www.modevia.com
More information about the wp-hackers
mailing list