Ready to get started?Download WordPress


All-in-One Event Calendar
[resolved] Problem with qTranslate and Event Titles (4 posts)

  1. asierma
    Posted 2 years ago #


    I had a problem, because I was using qTranslate + all-in-one-event-calendar and in the view "Agenda", the event titles appeared as <!--:es-->Titulo del Evento<!--:--><!--:en-->Event Title<!--:-->.

    It was very disgusting, so I was looking for any solution. I want that it appears only the current language on the page.

    Finally I changed on the file agenda.php the lines 55 and 105. Both lines have the this code:
    <?php echo esc_html( $event->post->post_title ) ?>

    I changed these lines for this another code
    <?php echo apply_filters( 'the_content', $event->post->post_title ) ?>

    Apparently it works fine. Is this solution ok?

    Thanks a lot.


  2. Yani Iliev
    Posted 2 years ago #

    You probably need to use the filter for the post title:
    <?php echo apply_filters( 'the_title', $event->post->post_title ) ?>

  3. asierma
    Posted 2 years ago #

    Thank you, excuse me for my ignorance.

    I had to change also month.php and agenda-widget.php with the same code.

  4. Yani Iliev
    Posted 2 years ago #

    This is fixed in v1.0.8

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic