Support » Plugin: qTranslate X » the_archive_title() showing all languages for custom post type category archive

  • Resolved ikarus7


    Hi guys,

    I’m currently debugging a custom taxonomy archive, which is outputting all the languages in the_archive_title() call. e.g. the title will be “Resource Category: [:en]home[:aa]title1[:bb]title2[:]”.

    Category titles appear fine in the admin panel (each language is only showing it’s respective title), but appears that it’s almost like the the_archive_title() text is not being filtered properly by qTranslate?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Looks like I found a workaround for this. Seems like the_archive_title() function isn’t triggering the qTranslate filter, so rather than calling this function, we can manually apply the filter instead using __( ... ) as described in the qTranslate start up guide.

    So taking this scenario, I use get_the_archive_title() instead:
    <?php echo __( get_the_archive_title() ); ?>

    This will now output only the right translation, however, do make sure that the custom post type category’s labels are declared for each language too. i.e. [:en]Category[:aa]title1[:bb]title2[:]. Otherwise, the “Category: (term)” output on get_the_archive_title() will only output whatever language it is declared for.

    • This reply was modified 2 years, 8 months ago by  ikarus7.
    Plugin Author John Clause


    I am sorry for your trouble. We currently do not have resources to answer support questions for free and rely on the community to provide a possible solution, which seems to work well in many cases. Many thanks to our active community members who take a good time to answer people’s problems!

    Most of the problems should be resolvable with and

    We need to figure out a way to monetize the support and further development. We would highly appreciate if you take about 5 minutes of your time to respond to the survey linked here:

    Any ideas and additional input are also welcome, use the same thread linked above for everyone to see your thoughts.

    Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_archive_title() showing all languages for custom post type category archive’ is closed to new replies.