WPML and the_content-hook
-
Hello
Im wondering how to display the entire post and all pluginhookup’s on the frontpage. I’ve read several places to replace the_excerpt() with the_content() in my theme-files, which (in the dropshadow-theme) is already done. I know that the entirety of my post-writings are shown on the frontpage, but not the WPML-post-hook.
Specifically, WPML shows a ‘This post is available in…’ when you click a specific post. I want this hook to be shown on the front page as well, so the readers know upfront that the post is available in multiple languages. As it is now, the entire post is shown and thus the reader (as far as I can guess) doesn’t feel a need to click the title of the post (and then be able to see that it is in fact available in other languages).
WPML uses this hook:
if($this->settings['post_languages']) { add_filter('the_content', array($this, 'add_post_available')); }
and my themes index.php uses this code:
<?php the_content(__('Read more'));?><div style="clear:both;"></div>
to show the posts.
- The topic ‘WPML and the_content-hook’ is closed to new replies.