ansonphong / postworld

Wordpress Theme Development Framework
GNU General Public License v2.0
7 stars 0 forks source link

"link_url" field being populated with Permalink #61

Closed ansonphong closed 10 years ago

ansonphong commented 10 years ago

Hi Haidy, I tried to get to the bottom of this, although I couldn't solve the issue.

It seems like when I'm inserting a post using pw_insert_post() or pw_update_post() that link_url field when supplied as empty is being auto-populated with a permalink url of the post.

This field link_url is actually meant for offsite links, such as related articles, or youtube videos, etc. I can't imagine how it's getting the permalink address in there.

Do you know what might be causing this?

hmikhail commented 10 years ago

I used to set link_url with post permalink when I insert a new record to post_meta. Removed that part.

ansonphong commented 10 years ago

Great, it's working well now.