Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Clement78 on "get_post_meta with html language tags"

$
0
0

Hello,

I have a plugin that adds a link functionality using custom posts.
Each link field (except for the title) seems to be a custom field / meta.
As I'm using qTranslate, I'm willing to use HTML languages tags as <!--:en--> into the text fields (like the link description) and then choose the right translation to display.
This would look like this :
<!--:en-->Hello<!--:--><!--:fr-->Bonjour<!--:-->

The problem is that every time that I return the description content (for example), these tags disappear ! The result is the same whether I use get_post_meta() or call $wpdb with get_var() on the meta.
Has anybody an idea of how I could get the raw html content without the tags being stripped ?

Thanks all


Viewing all articles
Browse latest Browse all 8245

Trending Articles