• Resolved vebbmaster

    (@vebbmaster)


    Hello!

    Is it possible to update internal links automatically/dynamically?

    I created all of my pages in the main lanuage, then bulk-duplicated them to all the other languages. This works perfectly with menu navigation and so on, but all the internal links in the content itself point to the international version.

    Can I somehow make them always point to the same language as the current chosen langauge is?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter vebbmaster

    (@vebbmaster)

    I guess there is no easy way.

    1. You can create a script that automatically rewrites all of the links on page load

    2. You can do a search and replace per language in the database

    …but you need to be very careful not to screw anything up.

    Thread Starter vebbmaster

    (@vebbmaster)

    This is my workaround:

    1. Create a new user for each language
    2. Tools -> Export -> Pages -> Export by Author
    3. Search and replace in a text editor
    4. Delete the existing pages (by that author)
    5. Import updated pages (Tools -> Import -> WordPress)

    You’re welcome.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Internal linking’ is closed to new replies.