• I am trying to migrate from Greymatter, and everything works great except that all the links in my posts remain in the Greymatter format… ie. “{{link URL link text}}”.

    Does anyone know of an easy way to get these to translate to normal links? I have well over 1,000 heavily linked posts migrated so the manual approach isn’t much of an option for me. -Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • That’s strange, all my “normal” links have been converted correctly. The only one not working are the thumbnail images that were links to a popup window to show the pic in the original size: “{{popup cat.jpg cat 490?—360}}”.

    Thread Starter mikesteele

    (@mikesteele)

    I have tried reinstalling and migrating to WordPress several times. I seem to get the same result every time.

    You can see an example by visiting the original Greymatter pages (https://www.breakfastforlunch.com) and then the WordPress version (https://www.breakfastforlunch.com/wordpress/).

    Any help or ideas would be appreciated!

    Thread Starter mikesteele

    (@mikesteele)

    Has anyone else experienced this issue?

    I have looked through the code for import-greymatter.php and while I am by no means an expert, I can’t seem to find anything in the code that looks like it would convert the link format to HTML.

    Please help… or at least let me know if it can be done!

    Thread Starter mikesteele

    (@mikesteele)

    Bump…

    Any other former Greymatter users have this problem?

    Thread Starter mikesteele

    (@mikesteele)

    Bah… no help… so I have sorted it out myself, I think. =)

    For those who want to know what I did, read on…
    Be aware, I am not a programmer and there are most likely 100 or more easier ways to do this. =)

    Step 1 – Downloaded all 1142 .cgi files for my individual Greymatter posts.

    Step 2 – Batch “find and replace” through all these files to change links to HTML using the following steps:

    a. Find all instances of {{link
    (there is a space after link, this is important)

    b. Replace with <a href=”

    c. Find all instances of <a href=”{wildcard for URL and space}

    d. Append “>
    (to the end after the space)

    e. Find all instances of “>
    (there is a space in front of the quote we need to get rid of)

    f. Replace with “>
    (no space in front)

    g. Find all instances of }}

    h. Replace with

    Wow! wasn’t that fun.

    Step 3 – Upload all the revised .cgi files and pray as I create a new database, reinstall WordPress and try to migrate for the 3rd time.

    BTW – I did all the find and replace work on the files using a demo of a program called “Actual Search & Replace”.

    Hope this helps the one other guy out there who used Greymatter and added GM formatted links within his posts! =)

    Thread Starter mikesteele

    (@mikesteele)

    Correction –
    h. was supposed to have a closing anchor tag

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem with imported Greymatter links in content’ is closed to new replies.