› Forums › SNAP – WordPress Plugin Forums › qTranslate Blog Title in Twitter Post
- This topic has 3 replies, 1 voice, and was last updated 11 years, 11 months ago by Ginchen.
- AuthorPosts
- September 25, 2012 at 2:35 pm #730markvanhazeParticipant
When posting a blog post using Twitter and having the %TITLE% displayed, it also takes the language tags from qTranslate and posts them:
Test Post – https://www.test.com/
This only happens with Twitter, facebook works fine.
Is there anyway I can remove the language tags from the title?
Also, since I have multiple languages on my blog, when posting on Facebook, all titles in all languages are posted in one line, no breaks or spaces. Besides using only one title for my blog posts, can I somehow define which Title SNAP should display?
September 25, 2012 at 2:37 pm #731markvanhazeParticipantThe tags didnt show in the previous post – what it should show is:
Getting Air in Turkey - Kitesurfing in Gokova - https://www.alwayswindy.com/blog/2012/09/getting-air-in-turkey-kitesurfing-in-gokova/
September 25, 2012 at 2:38 pm #732markvanhazeParticipantok I cant post the codes, here is an example Twitter Post: https://twitter.com/alwayswindy_com
December 16, 2012 at 11:32 am #4137GinchenParticipantHi, I had the same problem – it seems that Twitter was forgotten when qTranslate support was added to the plugin. 😉
For everyone else having this problem:
Replace your inc-cl/tw.php with the code from here: https://pastebin.com/2HZG3BvL
I added the line
if (isset($options['qTLng'])) $lng = $options['qTLng']; else $lng = '';
and changed all the lines that now contain
nxs_doQTrans(...
It’s working fine for me now!
Maybe the author will adopt these changes in the next version. 😉Greetings
Ginchen - AuthorPosts
- The topic ‘qTranslate Blog Title in Twitter Post’ is closed to new replies.