WordPress.org

Forums

urldecode post content and link problem (2 posts)

  1. rd801503
    Member
    Posted 2 years ago #

    i am have imported from blogger to wordpress

    i have some issues

    1.> the link in the post_contents are like this

    some content here

    "<a href="www.sitecounter.com/?key=something&link=www.myblog.blogspot.com">link</a>

    some content here

    here sitecounter.com maintains a link click counter

    i have to remove it to

    "<a href="www.sitecounter.com/?key=something&link=www.myblog.blogspot.com">link</a>

    with no counter here

    AND

    2.> urldecode the link in the post. , as some link get problematic with %2f@3f like structure

  2. David Choi
    Member
    Posted 2 years ago #

    If the links are not imported properly, then you can run MySQL find and replace SQL to correct them

    update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');

Topic Closed

This topic has been closed to new replies.

About this Topic