"\" in excerpts on homepage

Posted in: Newspaper
Post count: 3

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…

Post count: 39

Yes, I can confirm this happens with quotes, commas, apostrophes. I am going to try and fix it myself but this should really be checked before a release is made.

Post count: 39

Seriously this MEEDS to be FIXED NOW!

I run a journalism company and our entire front page is littered with these “/”!

Post count: 39

Correction the “\” is being injected before a ” or a ‘ but not a comma (,).

Post count: 39

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!

Post count: 3

Thanks Irajabi for your precious help! I wouldn’t have been capable of finding the source of the bug.

Have a nice day!

Post count: 9544

As we say in California … DUDE! thanks so much, just ran into this error and was about to post with screen shot.

Post count: 9544

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.

Post count: 780

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!

Post count: 3

Many thanks Radu for this new file and your explanations!

Post count: 9544

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

Post count: 39

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

Post count: 45

Thank you Irajabi and Radu all seems fine with the escapes now.

Viewing 13 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic.