WordPress.org

Ready to get started?Download WordPress

Forums

Sitemap generator and qtranslate (4 posts)

  1. venntom
    Member
    Posted 4 years ago #

    Hi,
    Cool sitemap generator.
    However when the qtranslate plugin is also installed, the sitemap generator shows the page titles with all the markup from qtranslate, for example:
    <!--:nl-->Technologie<!--:--><!--:en-->Technology<!--:--><!--:de-->Technologie<!--:--><!--:nl-->Technologie<!--:-->
    Is there a way to make it show only the page titles in the active language?
    Please advize...
    Thx Tom

  2. venntom
    Member
    Posted 4 years ago #

    Found the solution on another comment/forum:

    Look for $the_title = htmlspecialchars(trim($page_data[$p]['title']));
    and change into: $the_title = htmlspecialchars(trim(__($page_data[$p]['title'])));

    And also...

    Look for $the_title = htmlspecialchars(trim($post_data[$p]['title']));
    and change into: $the_title = htmlspecialchars(trim(__($post_data[$p]['title'])));

  3. wordpress4you
    Member
    Posted 4 years ago #

    Great point. Thanks.

  4. YogieAnamCara
    Member
    Posted 4 years ago #

    Cool Stuff Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic