• Hello, when exporting content of posts from a WP installation that uses Qtranslate, I noticed that html in titles was removed, do you know why?

    If you used QTranslate you know that is uses html comments to separate languages text fragment in post_tile or post_content; when exporting WP preserves the languages in post_content but NOT in post_title…

    Do you know ho to solve this?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter taloweb

    (@taloweb)

    If someone is insterested I solved it:
    you need to modify a wordpress core file:
    wp-admin/includes/export.php
    row 362

    <title><?php echo apply_filters( ‘the_title_rss’, $post->post_title );
    ?></title>

    modify to

    <title><?php echo ($post->post_title ); ?></title>

    and it works!

    Never edit WordPress core files!

    Thread Starter taloweb

    (@taloweb)

    You are so right! But how to solve my problem without touching this file? Have you any idea?

    Perhaps you need to contact the plugin’s developer about this?

    Thread Starter taloweb

    (@taloweb)

    I don’t know if exporting is a core WP functionality or a third part extension to the core… You can find in Tools->Exporting ad I think it is embedded in WP standard install…
    I thik this is not a Plugin extension, but a core fix (or better a suggestion to fix the core adding an option to export page which tells the code to export title as html without filtering)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exporting to xml remove html tags in title’ is closed to new replies.