Hi guys, since I updated the theme, the excerpts seem to show an encoding problem with the apostrophes (totally absent from the article by the way) in French (website : http://www.tweet.fr).
For example, the following sentence : “D\’une part parce que je n\’ai absolument pas eu le temps”.
Would you have a solution ?
Many thanks and sorry for my poor English…
FIXED:
Open up td_util.php (located in \Newspaper\includes\class) and go to line 275.
There you will find a new line of code added since version 1.4 of the theme. The line should read:
$post_content = wp_filter_nohtml_kses($post_content);
—
Comment out this code like so:
/*
$post_content = wp_filter_nohtml_kses($post_content);
*/
and save the file. This will bypass the offending piece of code but leave it in the file for your records.
PS: To the developer, you are welcome!
One downside, is that “curly quotes” don’t appear in excerpts, which they should as quotes are not inch marks. Not sure if this “fix” disables that functionality or if it was a built-in “feature” to disable any entities. Ideally entities for proper editorial quote marks vs inch marks should be maintained.
Hello all!
Thanks for reporting this. I’ve added that line to fix a bug with excerpts that have html in them. Before the “fix” the excerpt length counted the html like “http://import.tagdiv.com/newspaper/td_util.zip it fixes the \ issue and it still removes the html from the counted excerpt lenght. It's still not perfect π for example if you want to show a \ in your excerpt, the new system will remove it. but I'm working to improve it.
Thanks again to all. We are also working to improve this support forum. I think we can make a community here π not only for our themes but for wordpress and publishing in general!
Hi, Radu
awesome. I think a “knowledgebase” area with the answers to most common tricks/tips, and “hacks” (“mods”) would be welcome. I know when I was going to post something about the byline there was no way to “search” for any prior fix, and some things like the fix you gave me for using a pre-existing data field for the “reads” counter would be great to have in such a knowledgebase … and it saves you from answering some of the same questions over and over π
You are way ahead of the crowd, however, in answering most replies timely and accurately, and using screen shots with arrows — really great work on all of that.
Chris
All and Radu,
I’m glad my little bit of research was able to help. Obviously the best fixes will come from the dev himself. By and large Radu does an excellent job supporting us, just this fix was rather urgent so I stepped in to help.
I look forward to the next version Radu and if there is anything “we” as a community can do to help support each other please let’s all keep the feedback flowing. π
PS: neotrope – in Laguna Beach here, so ‘dude’ you’re totally welcome! π
– Luca
