Forums

Post of the Day
Modification to make plugin work with qtranslate (1 post)

  1. MiniC
    Member
    Posted 6 months ago #

    If the qtranslate Plugin is used, the Post of the day plugin displays multiple language content. To fix the problem change in post-of-the-day.php go to line 31 & 32

    return '<h2 class="potd_title">' . do_shortcode($curr_post->post_title) . '</h2>' .
    				'<div class="potd_content">' . do_shortcode($curr_post->post_content) . '</div>';

    replace it with:

    return '<h2 class="potd_title">' . do_shortcode(__($curr_post->post_title)) . '</h2>' .
    				'<div class="potd_content">' . do_shortcode(__($curr_post->post_content)) . '</div>';

    Thats all :-) The Plugin will display now only the content for the selcted language.

    http://wordpress.org/extend/plugins/post-of-the-day/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 6 months ago by MiniC
  • This topic is not a support question
  • WordPress version: 3.1.2