• I installed qTranslate for a client site I’m working on. I’ve used posts to populate sections of the homepage (static front page) so the client can edit the copy that displays in the various modules without having to deal with too much HTML. In some cases I’ve had to add a div or a button in the post, but that’s about it. I’ve tried to keep it to a minimum. That said, now both languages are displaying in the page in these modules. I assume it’s because I am querying the raw post, but I haven’t a clue how to remedy that with any filters as that’s a bit over my head. Here’s an example of the PHP I’m using for those modules…

    <div class="call-to-action">
    	<?php
    	$post_id = 123;
    	$queried_post = get_post($post_id);
    	?>
    
    	<div class="inner"><?php echo $queried_post->post_content; ?></div>
    </div><!--/.call-to-action-->
  • The topic ‘[Plugin: QTranslate] Displays both languages (need filters?)’ is closed to new replies.